X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=official%2Fsimple-control.groovy;h=41f3968af41d1dad5a80518296ff9c0642a1801e;hb=937c32b7f166ed5808796a961fa81610383e94e5;hp=3b4bfaa6597f4636e47229fa3396bcacffe41aea;hpb=3325c1b0cc49b9fbbc497cb3612f7aeff5263eca;p=smartapps.git diff --git a/official/simple-control.groovy b/official/simple-control.groovy index 3b4bfaa..41f3968 100755 --- a/official/simple-control.groovy +++ b/official/simple-control.groovy @@ -392,7 +392,7 @@ def sendToRoomie(evt, String callbackUrl) { def callback = new URI(callbackUrl) def host = callback.port != -1 ? "${callback.host}:${callback.port}" : callback.host def path = callback.query ? "${callback.path}?${callback.query}".toString() : callback.path - sendHubCommand(new physicalgraph.device.HubAction( + /*sendHubCommand(new physicalgraph.device.HubAction( method: "POST", path: path, headers: [ @@ -400,7 +400,7 @@ def sendToRoomie(evt, String callbackUrl) { "Content-Type": "application/json" ], body: [evt: [deviceId: evt.deviceId, name: evt.name, value: evt.value]] - )) + ))*/ } def mainPage() @@ -519,7 +519,7 @@ def discoverAgents() { def urn = getURN() - sendHubCommand(new physicalgraph.device.HubAction("lan discovery $urn", physicalgraph.device.Protocol.LAN)) + //sendHubCommand(new physicalgraph.device.HubAction("lan discovery $urn", physicalgraph.device.Protocol.LAN)) } def agentsDiscovered()