Mis le timeout de connexion wifi à 30 secondes pour les AP NodeMCU repeater qui sont très lents :-(

This commit is contained in:
Christian Zufferey
2020-02-29 23:34:36 +01:00
parent e735e06a5e
commit 1e895448ed

View File

@@ -1,7 +1,7 @@
-- Petit script pour initaliser la couche WIFI
function wifi_init()
print("\n wifi_init.lua zf200229.1438 \n")
print("\n wifi_init.lua zf200229.2330 \n")
f= "secrets_wifi.lua" if file.exists(f) then dofile(f) end
f= "secrets_project.lua" if file.exists(f) then dofile(f) end
@@ -61,7 +61,7 @@ function wifi_init()
if wifi.sta.getip() == nil then
print(i,"Connecting to AP...")
i=i+1
if i > 20 then
if i > 30 then
print("pas de wifi :-(")
file.putcontents("_setup_wifi_", "toto")
print("on restart pour le setup wifi")