Files
NodeMCU_Lua/LED_WS2812/Alex2/PoC/wifiap.lua
Christian Zufferey 3bfc2949d2 - testé le mode deep sleep avec dsleep.lua
- fait un petit ping avec ping.lua pour tester si une machine est présente
2018-11-13 20:44:42 +01:00

19 lines
341 B
Lua

-- set AP mode
wifi.setmode(wifi.SOFTAP)
wifi.ap.config({ ssid = "webleds", pwd = "12345678" })
print("Started AP mode")
-- get and display our IP addr.
tmr.alarm(0, 1000, 1, function()
if wifi.ap.getip() == nil then
print("Getting AP info...")
else
print('IP: ', wifi.ap.getip())
tmr.stop(0)
end
end)
print()