About the time getting problems ?

PaulTsai111
Posts: 48
Joined: Wed May 04, 2016 7:32 pm

About the time getting problems ?

Postby PaulTsai111 » Wed Jun 15, 2016 5:57 pm

樂鑫您好:

目前我有一個問題關於時間的問題.在樂馫所提供的SDK Programming Guide中提及到

有兩個API get_system_time() 與 get_system_rtc_time() 分別取得的是 樂馫IC的開機時間與上電的時間

關於取得目前的時間,似乎沒有特別提及.我目前仍有看到一個關於get_current_timestamp()的API,

他可以在連網的情況下去伺服器抓取當地時區的時間,假若有一個使用者,從一開始的使用環境是無網狀態,

則他應該無法知道目前的時間.請教,樂馫有否在無網狀態下取得時間的手法??

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

Re: About the time getting problems ?

Postby ESP_Faye » Thu Jun 16, 2016 5:30 pm

您好,

没有网络的情况下,无法获得当前时间。

需要连接到网络,使用 SNTP 功能即可从服务器获得时间信息。

Who is online

Users browsing this forum: No registered users and 13 guests