Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
888fbdf3
Commit
888fbdf3
authored
Feb 20, 2015
by
Damian
Browse files
ver 0.9.5 reports error in tmr.alarm()
There was no alarm ID.
parent
94aa3bef
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_examples/telnet.lua
View file @
888fbdf3
...
...
@@ -29,11 +29,11 @@ function startServer()
print
(
"===Now, logon and input LUA.===="
)
end
tmr
.
alarm
(
1000
,
1
,
function
()
tmr
.
alarm
(
1
,
1000
,
1
,
function
()
if
wifi
.
sta
.
getip
()
==
"0.0.0.0"
then
print
(
"Connect AP, Waiting..."
)
else
startServer
()
tmr
.
stop
()
tmr
.
stop
(
1
)
end
end
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment