Refactorisé encore une fois la branche IDE_remote afin de pouvoir ajouter luatool que j'ai remis au goût du jour ;-)

This commit is contained in:
Christian Zufferey
2019-10-20 18:21:13 +02:00
parent 2bde7567fe
commit 37babf725b
38 changed files with 705 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
-- Scripts à charger après le boot pour démarrer son appli
print("\n boot2.lua zf190917.0030 \n")
second_chance=nil
function heartbeat()
f= "flash_led_xfois.lua" if file.exists(f) then dofile(f) end
flash_led_xfois()
boottimer1=tmr.create()
boottimer1:alarm(1*1000, tmr.ALARM_AUTO, function()
xfois =2
blink_LED ()
end)
end
f= "0_get_data.lua" if file.exists(f) then dofile(f) end
f= "0_send_data.lua" if file.exists(f) then dofile(f) end
f= "0_cron.lua" if file.exists(f) then dofile(f) end
f=nil
heartbeat=nil
--heartbeat()