deepsleep reed wifi

Vasili97
Posts: 6
Joined: Thu Aug 15, 2019 8:46 am

deepsleep reed wifi

Postby Vasili97 » 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:

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?

Who is online

Users browsing this forum: arkayabt, MSN [Bot] and 30 guests