Commencé à travailler sur le capteur d'humidité HTU21D pour Bolo. Ne marche pas du tout encore :-(

This commit is contained in:
Christian Zufferey
2019-12-14 13:39:36 +01:00
parent e2c4ec9966
commit 0699933487
6 changed files with 73 additions and 60 deletions
+29 -1
View File
@@ -13,6 +13,8 @@
cd /Users/zuzu/Desktop/NodeMCU/NodeMCU_Lua/WIFI_sniffer/cret_project
export luatool_tty="/dev/cu.wchusbserial1410"
export zIP="192.168.0.200"
export zIP="192.168.1.122"
#export zIP="192.168.0.137"
export zport="23"
@@ -32,14 +34,40 @@ for k,v in pairs(_G) do print(k,v) end
# commandes lua pour ce projet
~.
export zIP="192.168.1.122"
./luatool.py --ip $zIP:$zport -f boot2.lua
export zIP="192.168.1.123"
./luatool.py --ip $zIP:$zport -f boot2.lua
export zIP="192.168.1.124"
./luatool.py --ip $zIP:$zport -f boot2.lua
telnet -rN $zIP $zport
node.restart()
telnet -rN $zIP $zport
wifi.eventmon.unregister(wifi.eventmon.AP_PROBEREQRECVED)
dofile("dir2.lua")
filec('dir2.lua')
filec('a1.lua')
dirc()
~.
zLED=0
gpio.mode(zLED, gpio.OUTPUT)
gpio.write(zLED, gpio.HIGH)
gpio.write(zLED, gpio.LOW)
print(3*4)
a=4
b=5
print(a*b)
print(a+b)
verbose=true
verbose=false
+18
View File
@@ -0,0 +1,18 @@
-- Scripts pour tester du code lua
--[[
Commandes à envoyer via un terminal:
~.
./luatool.py --ip $zIP:$zport -f b.lua
telnet -rN $zIP $zport
dofile("b.lua")
]]
print("\n b.lua zf191203.2206 \n")
print(3*4)
a=44
b=555
print(a*b)
print(a+b)
print("toto")
+2 -1
View File
@@ -1,6 +1,6 @@
-- Scripts à charger après le boot pour démarrer son projet
print("\n boot2.lua zf191124.1922 \n")
print("\n boot2.lua zf191203.2214 \n")
function boot2()
second_chance=nil initz=nil boot=nil
@@ -29,6 +29,7 @@ function boot2()
collectgarbage()
--- f= "b.lua" if file.exists(f) then dofile(f) end
f= "web_srv2.lua" if file.exists(f) then dofile(f) end
f= "web_ide2.lua" if file.exists(f) then dofile(f) end
f=nil