-->
Page 1 of 1

A tmr' strange behaviour

PostPosted: Sun Mar 08, 2015 12:39 pm
by eriskio
Hi all,
actually not a real bug for sure, but after having played with some simple tmr' related exercises (i.e.: activating multiple timers with different delays) they stopped to work.
I did successfully these kind of tests for some time today.
But now the simple command:
> tmr.alarm(3,1200,1,print("hello!"))
reply "hello!" ONLY once, doesn't matter how I set parameters (I tried to change them in turn).
I tried to activate all timers (0-6), but none is working.
I reflashed more times the board (just as last resort), without success.
The board is working (i.e. it answers to others commands, it can still connect to my WiFi getting right IP etc.) but timers wont work anymore.
Where am I wrong? What Am I missing?
:(
Thank you

Re: A tmr' strange behaviour

PostPosted: Sun Mar 08, 2015 4:29 pm
by jankop
Wrong syntax..

Code: Select alltmr.alarm(3,1200,1,function() print("hello!") end)

Re: A tmr' strange behaviour

PostPosted: Sun Mar 08, 2015 4:40 pm
by eriskio
:o :shock: :evil:
thanks jankop