Voilà c'est mieux, j'ai dû enlever le web server et maintenant j'ai assez de RAM, cela ne plante plus tout en ayant le socat qui fonctionne bien
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
-- Petit script pour envoyer en // es valeurs sur un serveur WEB (InfluxDB)
|
||||
-- via un http POST à travers un FIFO
|
||||
|
||||
if verbose then print("\n 0_http_post.lua zf200525.1412 \n") end
|
||||
if verbose then print("\n 0_http_post.lua zf200525.1808 \n") end
|
||||
|
||||
t_zurl={} t_zarg={} f_zpost=false
|
||||
|
||||
@@ -37,7 +37,7 @@ end
|
||||
|
||||
function http_post(zurl,zarg)
|
||||
table.insert(t_zurl, zurl) table.insert(t_zarg, zarg)
|
||||
print("t_zurl:") tprint(t_zurl) print("t_zarg:") tprint(t_zarg)
|
||||
if verbose then print("t_zurl:") tprint(t_zurl) print("t_zarg:") tprint(t_zarg) end
|
||||
if f_zpost==false then zpost() end
|
||||
if verbose then print("End http_post:\n"..node.heap()) end
|
||||
collectgarbage()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- Scripts à charger après le boot pour démarrer son projet
|
||||
|
||||
print("\n boot.lua zf200525.1539 \n")
|
||||
print("\n boot.lua zf200525.1809 \n")
|
||||
|
||||
-- function ztime_stamp() return tmr.now()/1000000 end
|
||||
|
||||
@@ -12,12 +12,12 @@ function boot()
|
||||
f = "0_http_post.lua" if file.exists(f) then dofile(f) end
|
||||
http_post(influxdb_url,"energy,memory=boot_"..yellow_id.." ram="..node.heap())
|
||||
|
||||
f="0_tst3_socat.lua" if file.exists(f) then dofile(f) end
|
||||
-- f="0_tst3_socat.lua" if file.exists(f) then dofile(f) end
|
||||
|
||||
-- f = "0_zdyndns.lua" if file.exists(f) then dofile(f) end
|
||||
-- print(node.heap()) collectgarbage() print(node.heap())
|
||||
|
||||
-- f="0_btn_flipflop.lua" if file.exists(f) then dofile(f) end
|
||||
f="0_btn_flipflop.lua" if file.exists(f) then dofile(f) end
|
||||
-- print(node.heap()) collectgarbage() print(node.heap())
|
||||
|
||||
f="0_cron.lua" if file.exists(f) then dofile(f) end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Petit script pour initaliser la couche WIFI
|
||||
|
||||
function wifi_init()
|
||||
print("\n wifi_init.lua zf200229.2330 \n")
|
||||
print("\n wifi_init.lua zf200525.1801 \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
|
||||
@@ -12,8 +12,9 @@ function wifi_init()
|
||||
f=nil secrets_wifi=nil cli_pwd=nil cli_ssid=nil
|
||||
tmr_wifi_init1=nil wifi_init=nil
|
||||
print(node.heap()) collectgarbage() print(node.heap())
|
||||
-- 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= "telnet_srv2.lua" if file.exists(f) then dofile(f) end
|
||||
f="0_tst3_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())
|
||||
zdelay=1 if reset_reason=="seconde_chance" then zdelay=20 end
|
||||
tmr_wifi_init3=tmr.create()
|
||||
|
||||
Reference in New Issue
Block a user