arduino-libraries / ArduinoIoTCloud

Home Page:https://app.arduino.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Callback Sync only works once after reboot

Frodo1980 opened this issue · comments

Sync-Callback works fine but only once after reboot of device. Is it because of ESP32-board? Thing is connected and values are uploaded to IoT-Cloud, but the Sync-Event does not call the function again.

Hi @Frodo1980 👋 Can you please share a minimal example exhibiting the problematic behaviour?

@aentinger @Frodo1980 looking at the code i think this is the intended behaviour.
The onSync callback is triggered only when all the board properties are synched to cloud properties and this is done once each time the board starts. After the sync event the onChange callback is triggered when the property value is updated.