As the title says... Chat on...

User avatar
By lyakh
#75902 Hi,
I've searched forums and other sources and haven't found any solution so far: I'm trying to put my NodeMCU into the light sleep mode to be woken up by a GPIO, I enabled TIMER_SUSPEND_ENABLE and PMSLEEP_ENABLE, rebuilt and flashed the firmware, but calling node.sleep() returns immediately. I tried both the "master" and the "dev" branches of the firmware. I traced the sleep down to the ets_timer_arm_new() function in ESP libraries, but that function seems only to arm a new timer, but I don't see it actually putting the CPU to sleep? What am I missing?