You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IDF version (git rev-parse --short HEAD to get the commit id.): 456efce
Development Env: [VSC]
Operating System: [|Ubuntu|]
Power Supply: [|external 5V|]
Problem Description
esp_deep_sleep(SLEEP_DURATION_uSECS); in app_main has no effect.
Expected Behavior
the instruction after esp_deep_sleep() should not be executet but the system should rather go into deep sleep and restart after the sleep period.
Actual Behavior
The esp_deep_sleep() call has no effect. Following instructions are executed - no restart.
Also when I start a MQTT app in app_main and when the mqtt event handler calls esp_deep_sleep() after successful publishing a message, then it works as expected,
esp_log_level_set("*", ESP_LOG_VERBOSE);
ESP_LOGI(TAG, "going into deep sleep for 20 sec");
esp_deep_sleep(20000000);
ESP_LOGE(TAG, "It did not work");
}
Debug Logs
Other items if possible
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
deep_sleep not working in all situations
deep_sleep not working in all situations (GIT8266O-389)
Jan 25, 2020
Environment
Development Kit:
IDF version (
git rev-parse --short HEAD
to get the commit id.): 456efceDevelopment Env: [VSC]
Operating System: [|Ubuntu|]
Power Supply: [|external 5V|]
Problem Description
esp_deep_sleep(SLEEP_DURATION_uSECS); in app_main has no effect.
Expected Behavior
the instruction after esp_deep_sleep() should not be executet but the system should rather go into deep sleep and restart after the sleep period.
Actual Behavior
The esp_deep_sleep() call has no effect. Following instructions are executed - no restart.
Also when I start a MQTT app in app_main and when the mqtt event handler calls esp_deep_sleep() after successful publishing a message, then it works as expected,
Steps to repropduce
Code to reproduce this issue
#include "esp_log.h"
void app_main(){
ESP_LOGI(TAG, "[APP] Startup..");
ESP_LOGI(TAG, "[APP] Free memory: %d bytes", esp_get_free_heap_size());
ESP_LOGI(TAG, "[APP] IDF version: %s", esp_get_idf_version());
}
Debug Logs
Other items if possible
The text was updated successfully, but these errors were encountered: