devsaurus wrote:In any case, it might be that the loop prevents the watchdog timer from being serviced. If it's running for more than 5 seconds, then the ESP will be reset by WDT.
The code run as event by timer every 1 second and there were no loop, and in code there is protection to not run second instance of program.
if singleLua~=0 then
singleLua=singleLua+1
if singleLua>3 then
singleLua=0
end
print(singleLua.." meas ")
return
end
The longest time to service code it was no more than 2 timers (2 seconds) and even with timeout there were no another timers. It mean that whole chip slowed down.