Commencé à travailler sur le capteur d'humidité HTU21D pour Bolo. Ne marche pas du tout encore :-(
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user