- tester pour voir si j'arrive à me connecter rapidement à un WIFI AP, le test est positif

- testé un seuper mini WEB IDE
This commit is contained in:
Christian Zufferey
2018-11-19 23:52:29 +01:00
parent 8b78b4aa04
commit d70ecc6173
20 changed files with 1567 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
--Script de bootstrap, test au moment du boot qui a été la cause de boot.
-- Si la cause est un power on ou une connexion depuis l'IDE, alors
-- le script repair.lua pendant 30 secondes avant de continuer
print("\n init.lua zf181119.1408 \n")
_, reset_reason = node.bootreason()
print("reset_reason:",reset_reason)
if reset_reason == 0 or reset_reason == 6 then
print("seconde chance...")
if file.exists("repair.lua") then dofile("repair.lua") end
initalarme=tmr.create()
tmr.alarm(initalarme, 300*1000, tmr.ALARM_SINGLE, function()
if file.exists("boot.lua") then dofile("boot.lua") end
end)
else
if file.exists("boot.lua") then dofile("boot.lua") end
end