Update ntp.
This commit is contained in:
parent
c92f4ebbcc
commit
4cd1a1cb1e
|
|
@ -221,7 +221,7 @@ time_t now;
|
|||
struct tm timeinfo;
|
||||
|
||||
static void get_time_task() {
|
||||
esp_sntp_config_t config = ESP_NETIF_SNTP_DEFAULT_CONFIG("cn.pool.ntp.org");
|
||||
esp_sntp_config_t config = ESP_NETIF_SNTP_DEFAULT_CONFIG("ntp.aliyun.com");
|
||||
esp_netif_sntp_init(&config);
|
||||
// wait for time to be set
|
||||
int retry = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue