Callback Sync only works once after reboot
Frodo1980 opened this issue · comments
Michael Lüssem commented
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.
Alexander Entinger commented
Hi @Frodo1980 👋 Can you please share a minimal example exhibiting the problematic behaviour?
Mattia Pennasilico commented
@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.