mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-29 05:38:42 +00:00
deep sleep: add note about disabling WiFi and BT
This change adds a note to esp_deep_sleep that applications should disable WiFi and BT before going into deep sleep. SNTP example is also updated.
This commit is contained in:
@@ -110,6 +110,8 @@ static void obtain_time(void)
|
||||
time(&now);
|
||||
localtime_r(&now, &timeinfo);
|
||||
}
|
||||
|
||||
ESP_ERROR_CHECK( esp_wifi_stop() );
|
||||
}
|
||||
|
||||
static void initialize_sntp(void)
|
||||
|
Reference in New Issue
Block a user