- juste synchronisation avec mon mac book air
This commit is contained in:
0
Hugo/README.md
Normal file → Executable file
0
Hugo/README.md
Normal file → Executable file
0
Hugo/init.lua
Normal file → Executable file
0
Hugo/init.lua
Normal file → Executable file
0
Hugo/led_blink_1.lua
Normal file → Executable file
0
Hugo/led_blink_1.lua
Normal file → Executable file
0
Hugo/led_blink_2.lua
Normal file → Executable file
0
Hugo/led_blink_2.lua
Normal file → Executable file
0
Hugo/led_intensite.lua
Normal file → Executable file
0
Hugo/led_intensite.lua
Normal file → Executable file
0
Hugo/led_intensite_variable.lua
Normal file → Executable file
0
Hugo/led_intensite_variable.lua
Normal file → Executable file
0
Hugo/led_press_button.lua
Normal file → Executable file
0
Hugo/led_press_button.lua
Normal file → Executable file
0
Hugo/luatool.py
Normal file → Executable file
0
Hugo/luatool.py
Normal file → Executable file
0
Hugo/meter_mesure.lua
Normal file → Executable file
0
Hugo/meter_mesure.lua
Normal file → Executable file
0
Hugo/oled_first.lua
Normal file → Executable file
0
Hugo/oled_first.lua
Normal file → Executable file
0
Hugo/robot_avance_arrete.lua
Normal file → Executable file
0
Hugo/robot_avance_arrete.lua
Normal file → Executable file
0
Hugo/robot_mesure_turn_right.lua
Normal file → Executable file
0
Hugo/robot_mesure_turn_right.lua
Normal file → Executable file
0
Hugo/robot_random_mesure.lua
Normal file → Executable file
0
Hugo/robot_random_mesure.lua
Normal file → Executable file
0
Hugo/start_EPSlorer.sh
Normal file → Executable file
0
Hugo/start_EPSlorer.sh
Normal file → Executable file
0
Hugo/start_screen.sh
Normal file → Executable file
0
Hugo/start_screen.sh
Normal file → Executable file
0
Hugo/test_blink_1.lua
Normal file → Executable file
0
Hugo/test_blink_1.lua
Normal file → Executable file
0
Hugo/test_blink_2.lua
Normal file → Executable file
0
Hugo/test_blink_2.lua
Normal file → Executable file
0
Hugo/test_get_ip_1.lua
Normal file → Executable file
0
Hugo/test_get_ip_1.lua
Normal file → Executable file
0
Hugo/test_init_1.lua
Normal file → Executable file
0
Hugo/test_init_1.lua
Normal file → Executable file
0
Hugo/test_press_button_1.lua
Normal file → Executable file
0
Hugo/test_press_button_1.lua
Normal file → Executable file
0
Hugo/test_web_1.lua
Normal file → Executable file
0
Hugo/test_web_1.lua
Normal file → Executable file
0
Hugo/u_dir.lua
Normal file → Executable file
0
Hugo/u_dir.lua
Normal file → Executable file
0
Hugo/u_get_ip.lua
Normal file → Executable file
0
Hugo/u_get_ip.lua
Normal file → Executable file
0
Hugo/u_start_job.lua
Normal file → Executable file
0
Hugo/u_start_job.lua
Normal file → Executable file
0
Hugo/u_telnet_srv.lua
Normal file → Executable file
0
Hugo/u_telnet_srv.lua
Normal file → Executable file
0
Hugo/u_web_stop.lua
Normal file → Executable file
0
Hugo/u_web_stop.lua
Normal file → Executable file
0
Hugo/web_liste_deroulante_led_change.lua
Normal file → Executable file
0
Hugo/web_liste_deroulante_led_change.lua
Normal file → Executable file
0
Hugo/web_oled_decode_url.lua
Normal file → Executable file
0
Hugo/web_oled_decode_url.lua
Normal file → Executable file
0
Hugo/web_press_button_led.lua
Normal file → Executable file
0
Hugo/web_press_button_led.lua
Normal file → Executable file
0
Hugo/web_robot_on_off.lua
Normal file → Executable file
0
Hugo/web_robot_on_off.lua
Normal file → Executable file
18
Wifi/wifi_ap_start.lua
Normal file → Executable file
18
Wifi/wifi_ap_start.lua
Normal file → Executable file
@@ -1,15 +1,5 @@
|
||||
-- Démarre le WIFI en mode AP
|
||||
print("\wifi_ap_start.lua zf180822.1544 \n")
|
||||
|
||||
local zmodewifi=wifi.getmode()
|
||||
if zmodewifi == wifi.NULLMODE then
|
||||
print("WIFI mode AP only")
|
||||
wifi.setmode(wifi.SOFTAP)
|
||||
elseif zmodewifi == wifi.STATION then
|
||||
print("WIFI mode AP+CLI")
|
||||
wifi.setmode(wifi.STATIONAP)
|
||||
end
|
||||
wifi.ap.config({ ssid = "NodeMCU "..wifi.ap.getmac(), pwd = "12345678" })
|
||||
dofile("wifi_info.lua")
|
||||
|
||||
-- Démarre un WIFI AP
|
||||
print("\wifi_ap_start.lua zf20180724.2220 \n")
|
||||
|
||||
wifi.setmode(wifi.SOFTAP)
|
||||
wifi.ap.config({ ssid = "NodeMCU", pwd = "12345678" })
|
||||
|
||||
@@ -1,7 +1,19 @@
|
||||
-- Petit script pour démarrer le mode configuration WIFI du NodeMCU
|
||||
print("\wifi_cnf_start.lua zf180822.1540 \n")
|
||||
-- Enclenche le mode configuration WIFI
|
||||
print("\nzf180718.1107\n")
|
||||
|
||||
function get_ip()
|
||||
if wifi.sta.getip() == nil then
|
||||
print("Connecting to AP...")
|
||||
else
|
||||
tmr.stop(0)
|
||||
print("Connected! IP: ",wifi.sta.getip())
|
||||
tmr.alarm(0,3000,tmr.ALARM_SINGLE, function() node.restart() end)
|
||||
end
|
||||
end
|
||||
|
||||
wifi.sta.disconnect()
|
||||
wifi.sta.clearconfig()
|
||||
print("\nwifi config http://192.168.4.1\n")
|
||||
dofile("wifi_get_ip.lua")
|
||||
tmr.alarm(0, 1000, tmr.ALARM_AUTO , get_ip)
|
||||
enduser_setup.start()
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
-- Petit script pour arrêter le mode configuration WIFI du NodeMCU
|
||||
print("\wifi_cnf_stop.lua zf180822.1538 \n")
|
||||
-- Déclenche le mode configuration WIFI
|
||||
-- zf180713.1453
|
||||
|
||||
enduser_setup.stop()
|
||||
wifi.sta.autoconnect(1)
|
||||
wifi.sta.connect()
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
-- Déconnecte le WIFI
|
||||
-- zf180713.1453
|
||||
|
||||
print("\wifi_off.lua zf180822.0959 \n")
|
||||
|
||||
wifi.setmode(wifi.NULLMODE)
|
||||
|
||||
--[[
|
||||
print(wifi.NULLMODE, wifi.STATION, wifi.SOFTAP, wifi.STATIONAP)
|
||||
print(wifi.getmode())
|
||||
]]
|
||||
|
||||
wifi.sta.disconnect()
|
||||
|
||||
0
oled_demo_minid1.lua
Normal file → Executable file
0
oled_demo_minid1.lua
Normal file → Executable file
0
oled_first_minid1.lua
Normal file → Executable file
0
oled_first_minid1.lua
Normal file → Executable file
0
web_oled_minid1.lua
Normal file → Executable file
0
web_oled_minid1.lua
Normal file → Executable file
Reference in New Issue
Block a user