Show IP if connected to Wifi
This commit is contained in:
parent
e7032a62b0
commit
070d5de729
7
main.lua
7
main.lua
@ -162,7 +162,12 @@ function normalOperation()
|
||||
connect_counter=nil
|
||||
print('IP: ',wifi.sta.getip(), " heap: ", node.heap())
|
||||
rgbBuffer:fill(0,0,0) -- clear all LEDs
|
||||
rgbBuffer:set(13, color)
|
||||
rgbBuffer:set(13, color) -- I
|
||||
if ((inv46 ~= nil) and (inv46 == "on")) then
|
||||
rgbBuffer:set(45, color) -- P
|
||||
else
|
||||
rgbBuffer:set(55, color) -- P
|
||||
end
|
||||
ws2812.write(rgbBuffer)
|
||||
mlt:start()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user