on 03-23-2016 1:03 PM
Hi,
Not sure why, I was able to push message toDevice, but receive it from IoT MMS.
Table T_IOT_HTTP_PUSH contains pushed message, see beow,
When I'm doing https://iotmms<account_id>trial.hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/data/d000...GET request I don't receive it back - see below.
Hi Vladimirs,
Data APIs are protected with OAuth SAP HANA Cloud Platform Internet of Things (IoT) Services
When you do a GET request from the browser there is no Authorization: Bearer <token> header.
Either use tools like Postman or your own client implementation. See Starter Kit for references https://github.com/SAP/iot-starterkit
Regards,
Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The deviceid is different in your get ... the deviceid has to be the same in the push and the get.
Kind regards,
Wouter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you pushing to http or websocket? in case of websocket change your url:
Hi Wouter,
you mixed up the APIs. There is no http://.../ws/data/ endoint exposed by MMS. In order to Push a message over WS you set "method" attribute in body to "ws" https://help.hana.ondemand.com/iot/frameset.htm?9da1c18f6ab947c58052f4d07498a654.html
There is a wss://../ws/data/ endpoint but is it used to send the messages FROM the device to MMS https://help.hana.ondemand.com/iot/frameset.htm?e12d1429ddcb469ebed59746b64e16ae.html
Regards,
Anton
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.