The following page was printed from RemoteCentral.com:
Post 7 made on Thursday May 1, 2014 at 15:22 |
Stealth Long Time Member |
Joined: Posts: | December 2003 72 |
|
|
Can someone help me with a http command?
I have tested the command below in a web browser and it switches my Z-Wave light on ok.
htt p://192.168.0.151:3480/data_request?id=lu_action&output_format=xml&DeviceNum=3&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1
So far I have created a new page and setup a TCP/IP Socket connection with code in the Activities page connecting to 192.168.0.151 port 3480. On the UI page I have put a couple of test buttons on it but I can't workout how to send the command i.e.
/data_request?id=lu_action&output_format=xml&DeviceNum=3&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1
Can anyone tell me how best to do this?
Thanks
Steve
|
|
|
|