Files
NodeMCU_Lua/SonOff/get_ip.lua
Christian Zufferey 3149e7ecc8 first commit
2018-07-22 12:43:16 +02:00

13 lines
259 B
Lua

-- get_ip.lua
-- affiche l'adresse IP
-- zf180715.2347
tmr.alarm(0, 1000, tmr.ALARM_AUTO , function()
if wifi.sta.getip() == nil then
print("Connecting to AP...")
else
print("Connected! IP: ",wifi.sta.getip())
tmr.stop(0)
end
end)