Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
I'm trying to update property value on Thingworx through Arduino connected to ESP8266mod,by using HTTP PUT with AT commands. I managed to test updating in Postman and it works fine.
1. I only manage to connect to thingworx with AT+CIPSTART="UDP","XX.XX.XX.XX","8080"
When I use AT+CIPSTART="TCP","XX.XX.XX.XX","8080" it hangs for a bit and i get ERROR.
(TCP works when connecting to Academic but not Trial)
2. Can anyone give me example how would AT+CIPSEND data package look like?
My guess is something like:
AT+CIPSEND=0,226
PUT /Thingworx/Things/TestThing/Properties/TestValue?appKey=xxxxxxxxxxxxxxxxxxxxxx HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: XX.X.XX.X
{"TestValue" : "15"}
#26
But all i get is SEND OK
Thanks in advance.
Solved! Go to Solution.
Your PUT message is pretty close, but I see a couple of problems.
The Developer Portal 30 day hosted servers use https on the default port 443. I don't know if your device can make an https connection
This guide has an example working PUT command:
https://developer.thingworx.com/resources/guides/rest-api-how-guide/property-values-rest-api-how
Your PUT message is pretty close, but I see a couple of problems.
The Developer Portal 30 day hosted servers use https on the default port 443. I don't know if your device can make an https connection
This guide has an example working PUT command:
https://developer.thingworx.com/resources/guides/rest-api-how-guide/property-values-rest-api-how