@babajun no, it is because the esp8266 has no sleep mode that is useful. Esp8266 requires a full restart after sleeping. Use wait() instead.