Commencé à refactorisé la procédure de configuration du wifi quand il se trouve sur un autre AP
This commit is contained in:
@@ -5,24 +5,24 @@
|
||||
-- par 'boot2.lua' au moment du boot
|
||||
|
||||
function secrets_project()
|
||||
print("\n secrets_project.lua zf191218.0818 \n")
|
||||
print("\n secrets_project.lua zf191222.1709 \n")
|
||||
|
||||
influxdb_url="http://www.xxx.ml:8086/write?db=xxx&u=admin&p=xxx"
|
||||
print("influxdb_url: "..influxdb_url)
|
||||
|
||||
th_id = "generic"
|
||||
node_id = "generic"
|
||||
|
||||
if node.chipid() == 3049014 then th_id = "th0" end
|
||||
if node.chipid() == 3049553 then th_id = "th1" end
|
||||
if node.chipid() == 14975023 then th_id = "th2" end
|
||||
if node.chipid() == 14972372 then th_id = "th3" end
|
||||
if node.chipid() == 12557128 then th_id = "th4" end
|
||||
if node.chipid() == 3048165 then th_id = "th5" end
|
||||
if node.chipid() == 14973009 then th_id = "th6" end
|
||||
if node.chipid() == 3049014 then node_id = "0" end
|
||||
if node.chipid() == 3049553 then node_id = "1" end
|
||||
if node.chipid() == 14975023 then node_id = "2" end
|
||||
if node.chipid() == 14972372 then node_id = "3" end
|
||||
if node.chipid() == 12557128 then node_id = "4" end
|
||||
if node.chipid() == 3048165 then node_id = "5" end
|
||||
if node.chipid() == 14973009 then node_id = "6" end
|
||||
|
||||
|
||||
|
||||
print("th_id: "..th_id)
|
||||
print("node_id: "..node_id)
|
||||
|
||||
end
|
||||
secrets_project()
|
||||
|
||||
Reference in New Issue
Block a user