Page 1 of 1

deepsleep reed wifi

Posted: Wed Sep 11, 2019 11:02 am
by Vasili97
Hello,

I want to program my esp to wakeup from deepsleep by open reed switch and sending a message via wifi and then enter deepsleep again. i dont get the commands:

Code: Select all

esp_sleep_enable_ext0_wakeup(13, 1); 
esp_deep_sleep_start();
In which part of code it has to be, own function or in app_main and what happens with the code afterwards?

AND how do i send and receive messages through wifi with an esp32?