-->
Page 2 of 2

Re: time (via sntp calls or via time()) not right ?

PostPosted: Fri Oct 20, 2017 11:11 am
by dannybackx
mrburnette wrote:I do it this-a-way

https://www.hackster.io/rayburne/nist-date-amp-time-with-esp8266-and-oled-display-e8b9a9

Ray


Interesting. I want to interpret the date/time info and do something with it, though. For instance : turn on a light between 7 and 8am. It would be trivial to add that to your app with some text decoding.

But there are APIs for this, and they let me down. I'm still looking for clues as to why the timezone appears to be reset every couple of hours.

Re: time (via sntp calls or via time()) not right ?

PostPosted: Mon Oct 23, 2017 11:44 pm
by dannybackx
I've reorganized my code to also initialize SNTP when the MQTT needs to be reconnected.
This appears to make SNTP behave well.

Not sure why though.