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(); )
sntp_get_current_timestamp
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 !
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 1 guest
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.