Commit 46236dd0 authored by Jedrzej Jajor's avatar Jedrzej Jajor
Browse files

Fixed missing wifi module name.

parent 790adedc
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment