Refactorisé la gestion du btn verbose. Le telnet reverse fonctionne bien maintenant \o/

This commit is contained in:
Christian Zufferey
2020-02-16 15:25:43 +01:00
parent faaac5ae05
commit 742283019d
4 changed files with 51 additions and 96 deletions

View File

@@ -1,6 +1,6 @@
-- Scripts à charger après le boot pour démarrer son projet
print("\n boot.lua zf200216.1332 \n")
print("\n boot.lua zf200216.1455 \n")
function boot()
verbose = true
@@ -11,10 +11,13 @@ function boot()
--zurl=thingspeak_url.."field1="..tostring(ztemp1).."&field2="..tostring(zhum1)
--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="0_btn_flipflop.lua" if file.exists(f) then dofile(f) end
--f = "web_ide2.lua" if file.exists(f) then dofile(f) end
print("verbose:",verbose)
print("boot lancé...")
print(node.heap()) collectgarbage() print(node.heap())
f=nil boot=nil
end
boot()