adjust to home env

This commit is contained in:
Wolfgang Hottgenroth
2015-09-11 13:47:00 +02:00
parent 46da9841f5
commit b688303694
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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