Hello everybody here,
I'm new on this forum and I have an issue with my virtul device created on HCL. In particular, after have been created a virtual device with a button and a label, I would like to assign an action for a such button.
Let's say, I want to turn on some phiscal device and update a label's value to "Turned On" respectively.
By using a String option on HCL, I managed to send a single SOAP request(on a button click) in order to either turn on device or change label's value separately. The issue is that, I would like to execute both things togather.
In the following I'll share my code which I've tried to assign to the button:
Case 1
GET /api/callAction?deviceId=131&name=turnOn HTTP/1.1
Host: 192.168.1.31
Authorization: Basic Base64_encode_of(login:password)
Case 1 Works fine
Case 2
GET /api/callAction?deviceId=113&name=setProperty&arg1=ui.Label1.value&arg2=Turned%20On HTTP/1.1
Host: 192.168.1.31
Authorization: Basic Base64_encode_of(login:password)
Case 2 Works fine
Case 3
GET /api/callAction?deviceId=131&name=turnOn HTTP/1.1
Host: 192.168.1.31
Authorization: Basic Base64_encode_of(login:password)
GET /api/callAction?deviceId=113&name=setProperty&arg1=ui.Label1.value&arg2=Chiuso HTTP/1.1
Host: 192.168.1.31
Authorization: Basic Base64_encode_of(login:password)
Case 3, both things together, No. It executes only the first request.
So I've been wondering, is it even possible to carry out something like case 3? And if so, where I've been failing?
Thanks for any kind of help!