RalfJL / VE.Direct2MQTT

Use a esp32 to push VE.Direct ASCII messages to a MQTT server
MIT License
58 stars 16 forks source link

Compile error when disabling OTA (NO_USE_OTA) #1

Closed loebelch closed 3 years ago

loebelch commented 4 years ago

When disabling OTA in config.h: #define NO_USE_OTA

I got a compile error stating:

D:\development\arduino\sketches\VE.Direct2MQTT\VE.Direct2MQTT.ino: In function 'void setup()':
VE.Direct2MQTT:75:14: error: 'setClock' was not declared in this scope
     setClock();

When activating OTA compile is successful.

Environment: current master branch via Arduino IDE 1.8.13.

RalfJL commented 3 years ago

Moved setClock to vedirectWiFi. set Clock is also needed for SSL connection to MQTT so it needs to be done anyway