/* First we configure the wake up source We set our ESP32 to wake up for an external trigger. There are two types for ESP32, ext0 and ext1 . ext0 uses RTC_IO to wakeup thus requires RTC peripherals to be on while ext1 uses RTC Controller so doesnt need peripherals to be powered on. Note that using internal pullups/pulldowns also requires RTC peripherals to be turned on. */ Serial.println(esp_sleep_enable_ext0_wakeup(GPIO_NUM_0, 1)); //1 = High, 0 = Low

//Go to sleep now Serial.println("Going to sleep now"); esp_deep_sleep_start(); Serial.println("This will never be printed");}

how to react on postings:- post helped: provide your final sketch, say thank you & give karma.- post not understood: Ask as long as you understand the post- post is off topic (or you think it is): Stay to your topic. Ask again. - else: Ask again.

how to react on postings:- post helped: provide your final sketch, say thank you & give karma.- post not understood: Ask as long as you understand the post- post is off topic (or you think it is): Stay to your topic. Ask again. - else: Ask again.