Merge pull request #2421 from jedrzejj/dev

Fixed missing wifi module name.
This commit is contained in:
Terry Ellison 2018-07-08 20:24:39 +01:00 committed by GitHub
commit fd8181d75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)