Unfortunatly I updated to the newest micropython firmware and esp-open-sdk. After doing this, many things are not working anymore. How can I enter deepsleep mode and register WAKE pin to wake the device?
Previously I used this code, that made the ESP sleep forever (no 71min timelimit as I read on the forum) and could be woken up using WAKE pin...
Code: Select all
import machine
rtc = machine.RTC()
rtc.irq(trigger=rtc.ALARM0, wake=machine.DEEPSLEEP)
machine.deepsleep()
Now, when I execute the above code, the ESP prints a message "enter deep sleep". Then, I can't do anything. Only connecting RST pin to GND will wake the device. But when I run
before calling deepsleep, this will not
wakeup the ESP after 10 seconds again (as described in docs), but really put it into deepsleep mode after 10 sec (so then wakeing is possible).
Is this the new way to do it? In the previous version setting up rtc.alarm() would lead to waking up again after 10 sec (as described in the docs).