adjust to home env
This commit is contained in:
4
init.lua
4
init.lua
@ -1,6 +1,6 @@
|
|||||||
-- Constants
|
-- Constants
|
||||||
SSID = "Kinderland"
|
SSID = "MessWLAN"
|
||||||
APPWD = "test1234"
|
APPWD = "UNVmpwbr6heQnMQ7ykXT"
|
||||||
CMDFILE = "mqtt.lua"
|
CMDFILE = "mqtt.lua"
|
||||||
|
|
||||||
-- Some control variables
|
-- Some control variables
|
||||||
|
4
mqtt.lua
4
mqtt.lua
@ -1,4 +1,4 @@
|
|||||||
BROKER = "192.168.87.100"
|
BROKER = "172.16.2.15"
|
||||||
BRPORT = 1883
|
BRPORT = 1883
|
||||||
BRUSER = ""
|
BRUSER = ""
|
||||||
BRPWD = ""
|
BRPWD = ""
|
||||||
@ -82,7 +82,7 @@ function run_main_prog()
|
|||||||
switch_state = false
|
switch_state = false
|
||||||
elseif (topic == topics[TOPIC_SWITCH] and data == "switch toggle") then
|
elseif (topic == topics[TOPIC_SWITCH] and data == "switch toggle") then
|
||||||
switch_state = not switch_state
|
switch_state = not switch_state
|
||||||
elseif (topic == topics[TOPIC_WATCHDOG] and data == "wauwau") then
|
elseif (topic == topics[TOPIC_WATCHDOG] and data == "WauWau!") then
|
||||||
print("9")
|
print("9")
|
||||||
tmr.alarm(4, 60000, 1, alarm)
|
tmr.alarm(4, 60000, 1, alarm)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user