sntp_get_current_timestamp

SpenZerX
Posts: 41
Joined: Thu Apr 16, 2015 9:30 pm
Location: Germany
Contact:

sntp_get_current_timestamp

Postby SpenZerX » Wed Dec 16, 2015 2:28 pm

Hello,

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(); )

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: sntp_get_current_timestamp

Postby ESP_Faye » Mon Dec 21, 2015 11:23 am

Hi,

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 !

Who is online

Users browsing this forum: No registered users and 2 guests