deepsleep reed wifi
Posted: Wed Sep 11, 2019 11:02 am
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:
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?
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();
AND how do i send and receive messages through wifi with an esp32?