The Wifi.setSNTP command is asynchronous and has no callback and events. I can compare the time from 1.1.1970 (>1000000) only in the case of the first synchronization, but not the subsequent cases. How to accurately determine when the synchronization ends?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The Wifi.setSNTP command is asynchronous and has no callback and events. I can compare the time from 1.1.1970 (>1000000) only in the case of the first synchronization, but not the subsequent cases. How to accurately determine when the synchronization ends?