Fixed missing wifi module name.

This commit is contained in:
Jedrzej Jajor 2018-07-08 16:13:11 +02:00
parent 790adedc2c
commit 46236dd091
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ return {
wifi.sta.config { ssid = ssid, pwd = pwd, save = false }
end
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)
print("Welcome to NodeMCU world", node.heap(), wifi.sta.getip())
net.createServer(net.TCP, 180):listen(port or 2323, telnet_listener)