Files
NodeMCU_Lua/SonOff/SonOff_2/boot.lua

12 lines
400 B
Lua

-- Scripts à charger après le boot pour démarrer le core system
print("\n boot.lua zf200101.1235 \n")
function boot()
gpio.trig(zswitch, "none") hvbouton=nil zswitch=nil reset_reason=nil
f= "telnet_srv2.lua" if file.exists(f) then dofile(f) end
f= "web_srv2.lua" if file.exists(f) then dofile(f) end
f= "wifi_init.lua" if file.exists(f) then dofile(f) end
end
boot()