-->
Page 1 of 1

Increase script execution time

PostPosted: Thu Jan 30, 2020 8:17 am
by nedoskiv
Hello,

When a script take too much time to execute, lua firmware restart the node, how much is that time, and how can I change it?

Re: Increase script execution time

PostPosted: Thu Jan 30, 2020 12:05 pm
by marcelstoer
That's not how it works. Be sure you understand https://nodemcu.readthedocs.io/en/lates ... andard-lua

The SDK's watchdog resets the device if system tasks aren't given enough (CPU) resources. You Lua script can run for as long as you like. However, you need to make sure you program it in a way that doesn't hog all resources.