ArduinoIoTCloud icon indicating copy to clipboard operation
ArduinoIoTCloud copied to clipboard

Callback Sync only works once after reboot

Open Frodo1980 opened this issue 3 years ago • 2 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.

Frodo1980 avatar Jan 04 '22 10:01 Frodo1980

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

aentinger avatar Jan 10 '22 09:01 aentinger

@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.

pennam avatar Jan 11 '22 10:01 pennam