scargill wrote:Depends what you call drift - I haven't checked but I'd be surprised if it is more than a second out..
Once I was trying to add similar functionality to one of my Ethernet enabled projects (Atmega328 + ENC28J60). Unfortunately there was no proper crystal for generating accurate 1Hz signal. I was forced to count milliseconds incremented by normal hardware timer. There was significant drift - about one second for every 10 minutes. To be sure, I had to use NTP every 5 minutes...
I just would like to avoid similar situation. Is ESP8266 software timer accurate enough? Can it be affected by delays used by other functions?