adjust to home env
This commit is contained in:
parent
46da9841f5
commit
b688303694
4
init.lua
4
init.lua
@ -1,6 +1,6 @@
|
||||
-- Constants
|
||||
SSID = "Kinderland"
|
||||
APPWD = "test1234"
|
||||
SSID = "MessWLAN"
|
||||
APPWD = "UNVmpwbr6heQnMQ7ykXT"
|
||||
CMDFILE = "mqtt.lua"
|
||||
|
||||
-- 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
|
||||
BRUSER = ""
|
||||
BRPWD = ""
|
||||
@ -82,7 +82,7 @@ function run_main_prog()
|
||||
switch_state = false
|
||||
elseif (topic == topics[TOPIC_SWITCH] and data == "switch toggle") then
|
||||
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")
|
||||
tmr.alarm(4, 60000, 1, alarm)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user