alonewolfx2 wrote:sancho wrote:I do not want to spam this thread
I tested the telnet from the wiki example and when I printed something using tmr.alarm, it printed nowhere.
Maybe I'll retry with the new firmware version.
Did someone update the lua uploader to work with telnet? If not, I can try...
I am developing lua console on the wifi. You can post in this link. Please continue with http://www.esp8266.com/viewtopic.php?f=22&t=707
When tmr.alarm doesn't do what I expect, I find that I have always entered it wrong.
tmr.alarm(0, 1000, 1, function() print("hello world") end )
not
tmr.alarm(0, 1000, 1, print("hello world") )
but I am totally new to Lua and these kinds of things are not intuitive to me...
If you use tmr.alarm inside a function to call itself after a delay using the second syntax, it will alarm immediately instead of waiting...