ESP8266 Developer Zone The Official ESP8266 Forum 2015-12-21T11:23:19+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=1529 2015-12-21T11:23:19+08:00 2015-12-21T11:23:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1529&p=5108#p5108 <![CDATA[Re: sntp_get_current_timestamp]]>
SNTP gets time from internet, if there is no connection to internet, SNTP can not work.

The internal clock (between syncs) runs slower than real time, so it needs sync to the server through internet.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Mon Dec 21, 2015 11:23 am


]]>
2015-12-16T14:28:28+08:00 2015-12-16T14:28:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1529&p=5060#p5060 <![CDATA[sntp_get_current_timestamp]]>
why is sntp_get_current_timestamp() not counting when not synced? (no connection to internet)
Serious usage is not possible without counting. A wrong value can still generate a useable timestamp.

When syncing time: Is the internal clock (between syncs) running faster or slower than real time?

Is there a trick to convert to javascript compatible value with more resolution?
( var d = new Date();
var n = d.getTime(); )

Statistics: Posted by SpenZerX — Wed Dec 16, 2015 2:28 pm


]]>