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?
An optional callback would need to be added, and the code here modified to call the callback if it exists.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem