Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hi Folks,
I'm a total newbie to Kepware, so please forgive any mistakes or formatting inadequacies. I have searched the website, but answers to similar questions involve ThingWorx, which I'm not using.
I'm using a trial version of KepServerEX 6.13 with the Postman utility to test responses to/from a REST API server configured in the IoT Gateway plugin. What I'm asking concerns the JSON call/response values.
The IoT Gateway has a REST API agent pointing to a new read/write tag with the name "Channel1.Device1.Order", which is of type string.
I followed the example from ptc.com: https://www.ptc.com/en/support/article/CS376106 .
Here is my POST request:
POST http://127.0.0.1:39320/iotgateway/write
Postman returned this JSON response, along with a status 200:
Now I want to read the current value of the tag I have just updated, but I have no example script. So I tried this:
GET http://127.0.0.1:39320/iotgateway/read?id="Channel1.Device1.Order"
Postman response (with status 200):
No errors, but no value either. Is my GET request incorrect? Or did the original POST request fail somehow?
I'd be grateful for any help, and to anyone with the patience to read this far.
Cheers
John M.
Solved! Go to Solution.
The format should be
http://127.0.0.1:39320/iotgateway/read?ids=Channel1.Device1.Order
For more details, refer the section "Working with a REST Server" in the IoT Gateway Manual
The format should be
http://127.0.0.1:39320/iotgateway/read?ids=Channel1.Device1.Order
For more details, refer the section "Working with a REST Server" in the IoT Gateway Manual