Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hi, I'm using http rest API by ArduinoYun. The question is, I want to send mutiple data to thingworx in one request. For example, I want to send temperautre and humidity to thongworx, now I use two request such as
I think maybe it could be zipped. Am i right?
Solved! Go to Solution.
You can use a PUT to send multiple values, with the Values object defined as a JSON.
Here is the article that outlines it.
You can use a PUT to send multiple values, with the Values object defined as a JSON.
Here is the article that outlines it.
Hi Pai,
Like this?
curl "http://zucc.cloud.thingworx.com:80/Thingworx/Things/DHT21Thing/Properties/*?appKey=deaf648e-e691-4e9e-88a9-1a80b21145c3" -X PUT -i -H "Content-Type:application/json" -H "Accept:application/json" -d '{"Temperature" : 44, "Humidity" : 44}'
Thankyou,
Angel
Hi,
U can use put method
eg:
1. Use a property called: "test"
2. Set the property as "23|66" that is temp=23 and Hum=66
3. Then write a service called "Logservice" for splitting this pipped value
URL:
and fire the Service URL