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
SSID = "Kinderland"
APPWD = "test1234"
SSID = "MessWLAN"
APPWD = "UNVmpwbr6heQnMQ7ykXT"
CMDFILE = "mqtt.lua"
-- Some control variables

View File

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