This commit is contained in:
Christian Zufferey
2020-01-09 13:50:37 +01:00
parent c792ff6b21
commit c64bac0b05
2 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
-- Petit script pour initaliser la couche WIFI
function wifi_init()
print("\n wifi_init.lua zf200108.1756 \n")
print("\n wifi_init.lua zf200109.1340 \n")
function wifi_init_end()
wifi_init1:unregister() zLED=nil i=nil
@@ -68,6 +68,7 @@ function wifi_init()
if i > 5 then
print("pas de wifi :-(")
wifi_init2:unregister() wifi_init2=nil
wifi.setmode(wifi.SOFTAP,true)
wifi_init_end()
end
else

View File

@@ -5,7 +5,7 @@
<title>SonOff home page</title>
</head>
<body>
<h1>SonOff home page 200106.1842</h1>
<h1>SonOff home page 200109.1347</h1>
<h2>Menu:</h2>
<h3>
<a href="api_sonoff.html?LED=on">SonOff API LED On</a><br>
@@ -68,8 +68,8 @@
<br><br>
<%
if wifi.sta.getip() ~= nil then
a,b,c = wifi.sta.getip()
a,b,c = wifi.sta.getip()
if a ~= nil then
zout("IP: "..a.."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MASK: "..b.."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GATEWAY: "..c.."<br>")
end
collectgarbage() zout("RAM: "..node.heap())