on 06-21-2016 2:07 PM
Hi,
I am trying to simulate the device reading data pushed from HCP to device. As per GitHub iot-starter kit I found the URL mentioned is
When I run this URL in browser and pass Authorization header as device OAuth Token generate from IoT Cockpit. It doest not return me any response. Also I check the documentation for IoT and there a different URL was mentioned
https://<host>/com.sap.iotservices.mms/v1/api/http/app.svc/
Is there any change to the APIs ?
Thanks
Hi Mayank,
can you please elaborate again what you try to achieve?
1. Device send messages to HCP and you want to consume those messages in your business application
or
2. HCP sends messages to Device and you want to receive those messages on a Device side
URL you have mentioned are exactly for those tho different use cases.
For case 1. is https://<host>/com.sap.iotservices.mms/v1/api/http/app.svc/<table name>
For case 2. is https://<host>/com.sap.iotservices.mms/v1/api/http/data/<device id>
Regards,
Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Another clarification. Do you get an empty response or empty json array back?
Maybe, you can share some screenshots of the PUSH table (where device id is visible) and also share your URL com.sap.iotservices.mms/v1/api/http/data/<device id>
so that we can compare the IDs? Which HTTP headers you supply in Postman? Also, be aware that Postman may re-use your current browser session (where you are logged in with SAML already). In this case an Authorization header wiht device token will not have an effect. It is recommended to close all browser windows, re-launc Postman and fire the HTTP call.
Regards,
Anton
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.