Corrigé une erreur de nom de version dans les scripts dir.lua (dir2 au lieu de dir1)

This commit is contained in:
Christian Zufferey
2020-06-11 13:51:09 +02:00
parent b0b67eaa00
commit 6f0fe48920
12 changed files with 18 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir2.lua zf191223.1455 \n")
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}

View File

@@ -1,6 +1,6 @@
-- Scripts qui permet d'enregistrer la raison du boot dans la flash
print("\n 0_rec_boot.lua zf200611.1151 \n")
print("\n 0_rec_boot.lua zf200611.1341 \n")
-- Problématique:
-- Afin de pouvoir enregistrer l'heure du boot dans la FLASH il faut
@@ -25,7 +25,7 @@ function rec_boot()
if verbose then print(ztime_format(rtctime.get()+3600)) end
if rtctime.get() > 0 then
print("Voilà on à l'heure, on peut enregistrer...")
print("Voilà on à l'heure, on peut enregistrer la raison du boot...")
tmr_rec_boot1:unregister() tmr_rec_boot1=nil
file.open("00_boot_reason.txt", "a+")
file.writeline(ztime_format(rtctime.get()+3600))

View File

@@ -27,7 +27,7 @@ telnet -rN localhost 23000
]]
print("\n 0_tst4_socat.lua zf200610.1826 \n")
print("\n 0_tst4_socat.lua zf200611.1339 \n")
local node, table, tmr, uwrite, tostring =
node, table, tmr, uart.write, tostring
@@ -141,8 +141,9 @@ function rt_connect()
gpio.write(zLED, gpio.LOW)
print("connected on "..console_host..":"..console_port)
print(node.heap())
if http_post~=nil then http_post(influxdb_url,"energy,memory=socat_connected_"..yellow_id.." ram="..node.heap()) end
end
if http_post~=nil then http_post(influxdb_url,"energy,memory=socat_connected_"..yellow_id.." ram="..node.heap()) end
telnet_listener(sck)
print("Welcome to NodeMCU world.")
end)
@@ -152,8 +153,8 @@ function rt_connect()
gpio.write(zLED, gpio.LOW) tmr.delay(10000) gpio.write(zLED, gpio.HIGH)
print("trying connect to "..console_host..":"..console_port)
print(node.heap())
if http_post~=nil then http_post(influxdb_url,"energy,memory=socat_try_con_"..yellow_id.." ram="..node.heap()) end
end
if http_post~=nil then http_post(influxdb_url,"energy,memory=socat_try_con_"..yellow_id.." ram="..node.heap()) end
end
tmr_socat1=tmr.create()

View File

@@ -1,6 +1,6 @@
-- Scripts à charger après le boot pour démarrer son projet
print("\n boot.lua zf200611.1053 \n")
print("\n boot.lua zf200611.1328 \n")
-- function ztime_stamp() return tmr.now()/1000000 end
@@ -24,7 +24,7 @@ print("\n boot.lua zf200611.1053 \n")
-- print(znanosec)
function boot()
verbose = true
verbose = false
print("On lance le boot...")
collectgarbage() print(node.heap())

View File

@@ -1,6 +1,6 @@
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir2.lua zf191223.1455 \n")
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}

View File

@@ -1,7 +1,7 @@
-- Petit script pour initaliser la couche WIFI
function wifi_init()
print("\n wifi_init.lua zf200611.1053 \n")
print("\n wifi_init.lua zf200611.1157 \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
@@ -14,7 +14,7 @@ function wifi_init()
print(node.heap()) collectgarbage() print(node.heap())
-- f= "telnet_srv2.lua" if file.exists(f) then dofile(f) end
-- f="0_tst4_socat.lua" if file.exists(f) then dofile(f) end
f="0_tst4_socat.lua" if file.exists(f) then dofile(f) end
-- f= "web_srv2.lua" if file.exists(f) then dofile(f) end
print(node.heap()) collectgarbage() print(node.heap())

View File

@@ -1,6 +1,6 @@
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir2.lua zf191223.1455 \n")
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}

View File

@@ -1,6 +1,6 @@
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir2.lua zf191223.1455 \n")
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}

View File

@@ -1,6 +1,6 @@
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir2.lua zf191223.1455 \n")
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}

View File

@@ -1,6 +1,6 @@
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir2.lua zf191223.1455 \n")
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}

View File

@@ -1,6 +1,6 @@
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir2.lua zf191223.1455 \n")
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}

View File

@@ -1,6 +1,6 @@
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir2.lua zf191223.1455 \n")
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}