Skip to content

Commit

Permalink
Finished the script
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicklas2751 committed Jan 7, 2017
1 parent d4491c4 commit a77079c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ function startListen()
end)

MQTTC:on("message", function(conn, topic, data)
log('debug msg for:'..topic)
if data ~= nil and topic == config.topic.switch433mhz.path then
-- do something, we have received a message
log("Recived: "..data)
rc.send(4,data,24,185,1,10) --Sends the data via GPIO pin 4 to the rc switch.
end
Expand Down

0 comments on commit a77079c

Please sign in to comment.