Skip to content

Commit

Permalink
Fixed ON/OFF commands
Browse files Browse the repository at this point in the history
  • Loading branch information
marioquake committed Jun 19, 2013
1 parent e66684f commit eb8ea4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenSprinklerPiServer/OpenSprinklerPi.c4i
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ end
function ReceivedFromProxy(idBinding, strCommand, tParams)
dbg('ReceivedFromProxy: ' .. idBinding .. " " .. strCommand)

if (strCommand == "ON") then
if (strCommand == "CLOSE") then
--C4:SendToProxy(idBinding, "OPENED", {}, "NOTIFY")
C4:urlGet("http://" .. httpAddress .. ":" .. httpPort .. "/sprinkler/zone/" .. idBinding .. "/start")

elseif (strCommand == "OFF") then
elseif (strCommand == "OPEN") then
--C4:SendToProxy(idBinding, "CLOSED", {}, "NOTIFY")
C4:urlGet("http://" .. httpAddress .. ":" .. httpPort .. "/sprinkler/zone/" .. idBinding .. "/stop")

Expand Down

0 comments on commit eb8ea4c

Please sign in to comment.