wip
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.." MASK: "..b.." GATEWAY: "..c.."<br>")
|
||||
end
|
||||
collectgarbage() zout("RAM: "..node.heap())
|
||||
|
||||
Reference in New Issue
Block a user