Skip to Content
avatar image
Former Member

Retrieve data - poll from HCP

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

https://iotmms_on_your_trial_system.hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/data/>

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 21, 2016 at 01:16 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Anton Levin

      Yes there was probably problem with browser session as I was getting empty response. I happened to try it in a fresh session to see the json array as you stated below.

      Thanks,

      Mayank