Hello ST developers,
maybe you can help me here,
I am trying to write a Device handler to send REST commands to Rompr.
The commands are sent using POST, and am trying to find how to process the response.
My initial code uses the, new physicalgraph.device.HubAction method , with a callback , hoping to catch the response:
but in the callback, I get no print for the response, so I guess this is not called.
2. I tried to use the def parse(response) , but even there the response is not printed out. see code above.
So how to get the response from my POST call?
3. some code has: log.debug “name”. Other log.debug(“name”) are they both legal?
(www.rboyapps.com - Making SmartThings Easy!)
Here is my current try with a simple GET to / which should respond with a HTML.
but the callback is not ran.
What should be the value of the deviceNetworkId when I first setup the device in my IDE ? the wesite wont allow me to leave it empty, so I tried to put NULL…
Must my code remove value in device.deviceNetworkId ?
And why am I getting no log line with this test