0

I am not sure how to configure http > Boolean with url /api

n muthu N Muthu 7 years ago in Devices / Http updated by Rait Lotamõis 7 years ago 1

I am not sure how  to  configure http  > Boolean with below  url /api 

I have to pass  l1498904289859 to open window  http://192.168.2.109:8080/send?deviceMac=b4430dd11511&codeId=l1498904289859 Close window  l1498900850560 http://192.168.2.109:8080/send?deviceMac=b4430dd11511&codeId=l1498900850560

using  browser  to enter  url its working  and  programme  > set the  http request also work  

Create a new http device. Enter your host URL: http://192.168.2.109:8080/send

Create a Boolean as a Child node of the http device. name it "State" for example

Create two Commands:

Open (?deviceMac=b4430dd11511&codeId=l1498904289859) - Use the Boolean as a Send trigger. (Devices\Http\State.Value = True)

Close (?deviceMac=b4430dd11511&codeId=l1498900850560) - Use the Boolean as a Send trigger. (Devices\Http\State.Value = False)



And now whenever you change the State, it should send out Open and Close commands.