Closed hsteinhaus closed 5 years ago
@hsteinhaus,
This is the expected behaviour of this function. os.sleep(time) puts the CPU into deep sleep mode, and after the time is elapsed, the CPU reboots.
See the wiki:
https://github.com/whitecatboard/Lua-RTOS-ESP32/wiki/Sleep#ossleepseconds
If you want, for example to sleep the current thread you can use the Thread module functions.
See the wiki:
https://github.com/whitecatboard/Lua-RTOS-ESP32/wiki/Thread-Module#threadsleepseconds
Lua RTOS crashes instantly on Wemos board with OLED when calling os.sleep(). Some (unwanted) kind of watchdog active in the background?