ESP8266 Developer Zone The Official ESP8266 Forum 2016-10-11T15:23:01+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2808 2016-10-11T15:23:01+08:00 2016-10-11T15:23:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2808&p=10114#p10114 <![CDATA[Re: ESP8266_RTOS_ALINK_DEMO,怎样获取服务器时间?]]> 获取服务器时间:1.在服务器的下发的json包中有相对的时间,需要解析一下。如“time”:“1476169824”. 2.你可以自己打一个NTP服务器,可以获取服务器时间。3.在十月低我们公司将会发布新的RTOS SDK,将会包括NTP,相对获取时间容易多了。

Statistics: Posted by ESP_Xutao — Tue Oct 11, 2016 3:23 pm


]]>
2016-09-23T21:08:54+08:00 2016-09-23T21:08:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2808&p=9929#p9929 <![CDATA[ESP8266_RTOS_ALINK_DEMO,怎样获取服务器时间?]]> * @desc: Get alink time. The SDK sync with server every 30 minutes
* or anytime if SDK is notified by the server if the timestamp is out order.
* @para: None
* @retc: utc time, the number of seconds since Epoth.
*/
unsigned int alink_get_time(void);

不是UTC。 :(

Statistics: Posted by sdlo77 — Fri Sep 23, 2016 9:08 pm


]]>