Github Boards Devices Community Docs Blog

ZactuatorONOFF compile error

Hi Florian,

I tried to compile with Arduino IDE both v0.95 and v0.96 with ONOFF actuator for ESP8266, and it couldn’t be done.

In the main.ino file, the code lines 1610-1612 (version 0.96) are left outside the #ifdef simpleReceiving block. I saw somewhere the comment “outside the jsonpublishing macro due to the fact that we need to use simplepublishing with HA discovery”, but for me it wouldn’t compile like this.

When I included it back inside the simpleReceiving block, it compiled, it receives the commands, and actuator works, however I don’t use HA discovery for this component so I don’t know if it affects the discovery function…

I guess this part of the code needs to be looked into.

Regards,
Nikola

1 Like