konnected-io/konnected-security

Panic unprotected error in call to Lua API (/opt/lua/application:lua:45: bad argument #1 to ‘alarm’ (Range: 1-6870947)

qu3bec opened this issue · 1 comments

Board rebooting constantly. Panic unprotected error in call to Lua API (/opt/lua/application:lua:45: bad argument #1 to ‘alarm’ (Range: 1-6870947))
I have 1 temp sensor and a 2 channel relay connected controlling garage door and a siren.today I updated to 2.30 but I believe board has been rebooting for sometime. It was running an older firmware and has been stable so far or till whenever it started rebooting. I have flashed few times to try and understand when this error starts and it starts as soon as I change the polling interval to 120 minutes.
Looks like maximum you can put is 6870947 ms which is 114 mins?? Is that correct? Is this why I’m having issues??

Yes, that's correct. The maximum value for a polling timer is 6870947 (1:54:30.947)
See: https://nodemcu.readthedocs.io/en/master/modules/tmr/#parameters_6

Sorry this was not documented well. Will make a note to update that.