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
46236dd0
Commit
46236dd0
authored
Jul 08, 2018
by
Jedrzej Jajor
Browse files
Fixed missing wifi module name.
parent
790adedc
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_examples/telnet/telnet.lua
View file @
46236dd0
...
@@ -144,7 +144,7 @@ return {
...
@@ -144,7 +144,7 @@ return {
wifi
.
sta
.
config
{
ssid
=
ssid
,
pwd
=
pwd
,
save
=
false
}
wifi
.
sta
.
config
{
ssid
=
ssid
,
pwd
=
pwd
,
save
=
false
}
end
end
tmr
.
alarm
(
0
,
500
,
tmr
.
ALARM_AUTO
,
function
()
tmr
.
alarm
(
0
,
500
,
tmr
.
ALARM_AUTO
,
function
()
if
(
sta
.
status
()
==
wifi
.
STA_GOTIP
)
then
if
(
wifi
.
sta
.
status
()
==
wifi
.
STA_GOTIP
)
then
tmr
.
unregister
(
0
)
tmr
.
unregister
(
0
)
print
(
"Welcome to NodeMCU world"
,
node
.
heap
(),
wifi
.
sta
.
getip
())
print
(
"Welcome to NodeMCU world"
,
node
.
heap
(),
wifi
.
sta
.
getip
())
net
.
createServer
(
net
.
TCP
,
180
):
listen
(
port
or
2323
,
telnet_listener
)
net
.
createServer
(
net
.
TCP
,
180
):
listen
(
port
or
2323
,
telnet_listener
)
...
...
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