Code: Select all
static RTC_RODATA_ATTR const char wake_msg[] = "Low power up\r\n";
// Deep sleep wake stub
void RTC_IRAM_ATTR esp_wake_deep_sleep(void)
{
// https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/deep-sleep-stub.html
esp_default_wake_deep_sleep();
// Enter the full sized wake stub routine
WakeStub_Run();
}
// Call on fresh bootup
void RTC_IRAM_ATTR WakeStub_Run(void)
{
// We're up
ets_printf(wake_msg);
}
Any ideas?
Thanks!