Technology Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
michael_ameling
Product and Topic Expert
Product and Topic Expert
47,843

What do you need to try out the Internet of Things (IoT Service)?


 


You need a free SAP Cloud Platform developer account (trial instance): Signing Up for a Developer Account.


Note: We recommend that you use the Firefox or Chrome Web Browser.


 


 


How to Subscribe to the IoT Service?


 


Enabling the IoT service




  1. Log on the SAP Cloud Platform cockpit:


  2. Go to the Services tab.

  3. Select the Internet of Things Service entry.


         

 

  1. Choose Enable.




  • A subscription of the IoT Service will be automatically assigned to your account. This subscription includes Remote Device Management Service (including IoT Cockpit) and Message Management Service capabilities.

  • The "IoT-User" role is automatically assigned to your user. The role is required to access the Internet of Things Services Cockpit.


 

Further documentation: https://help.hana.ondemand.com/iot > Getting Started > Enabling the Internet of Things Services

 

 

How to Get Started?

 

Accessing the IoT service cockpit

 

The Internet of Things services Cockpit allows you to register devices in a secure manner. Every device must have a certain device type which is specified by its supported message types. You can define both types in the IoT Cockpit as well.


 

  1. Choose Go to Service for the Internet of Things services subscription.

  2. The Internet of Things Service Cockpit is displayed.


    


 

Deploying Message Management Service

 

The deployment of the Message Management Service (MMS) is necessary to be able to send data from a device to your consumer account.


 

  1. Go to the Internet of Things Service Cockpit.

  2. Choose the Deploy Message Management Service tile which opens the MMS deployment tooling.


    


  1. Fill in the target consumer Account ID (pre-filled) from the SAP Cloud Platform Cockpit, and enter your User Name (pre-filled) and Password.


    

Further documentation: https://help.hana.ondemand.com/iot > Getting Started > Deploying the Message Management Service (MMS)


 

You can now start creating Message Types, Device Types and Devices in the Internet of Things Services Cockpit and send data from a device. The following section describes an example.

 

How to connect my first device?


 


The Starter Kit for the SAP Cloud Platform IoT Services  includes a documentation, and code snippets, which provide a complete end-to-end example of how to use the IoT services. You will learn how to enable the services as well as how to send messages and how to receive push messages. Moreover, a sample data consumption UI is provided. Further tutorials and blogs can be found on our SAP Cloud Platform IoT Service Jump Page.


Questions and Feedback?


We highly appreciate your questions or feedback. Please add your comments below. Furthermore we have a section FAQ in the documentation with a collection of frequently asked questions and provided solutions.


 


Additionally, you can keep yourself up to date by visiting the Release Notes page for the SAP HANA Cloud Platform, Internet of Things services regularly.



110 Comments
guillaume-hrc
Active Contributor
0 Kudos

Hi Robert,

Try changing the permissions of the iotmms Java application using the following:

If I can remember correctly, this solved my problem.

Best regards,

Guillaume

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Guillaume,

just a remark. This is a very important configuration step which makes it possible to use MMS Push API (to send data to the device).

Regards,

Anton

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Robert,

the internal API you described is used by MMS Cockpit only and provides a quick access to the data you sent from the devices. For consumption please use either the HCP Persistence API (an example is there in the IoT Starterter Kit) or XSJS/OData approach (all necessary steps are listed in post #3 by the follwoing link Using the SAP HCP IoT Services)

Regards,

Anton

Robert_Eijpe
SAP Mentor
SAP Mentor
0 Kudos

Hi Anton,

This example is not working for me. My iotservices has a MAXDB database and I want to use the WebIDE for UI5 not WebIDE for HANA.

Please can you make a API available for reading the table.

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Robert,

Thanks for your feedback. At the moment there are no plans to provide an additional consumption API but rely on the services (Persistence service, OData, XS etc) that are available in HCP already. For MaxDB, the best option would be to access the DB via JDBC and expose the respective service to your SAPUI5 application.

Regards,

Anton

0 Kudos

Hi,

I am trying to to send and receive messages via HTTP but it doesn't work.

The post returns 202 and the get returns a 400 code .... I do not see any correcponding table in HCP:

Can you please help?

[202] {"msg":"https://iotmmsixxxxxxtrial.hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/ack/84b4cc20-0..."}

[200] [{"code":400,"sequences":["1c12ba8e-479f-47fa-88b6-2850879ccdc3"]}]

Thanks

Peter

0 Kudos

Hi Peter,
could you send me your account name by email - then I can check the log files....
Thanks in advance, and thanks for the feedback...

0 Kudos

Hi Helmut,

I had exactly the same problem. Cause was wrong entries in config.py for the message type ID's

It should be something like

message_type_id_From_device='1'

message_type_id_To_device='2'

Hope this helps

Peter

Former Member
0 Kudos

Hi michael.ameling,

Thanks for all your affort.

Cheers

Sharma

0 Kudos

Hi,

I'm already stuck on one of the first steps: creating a device type. It always fails with a generic "could not create device type" error. When looking into the network traffic, the backend service is also not providing any detailed error message.

I verified that the IoT-User role is assigned to my user in the IoT Cockpit service and that IoT-MMS-User is assigned in the IoT MMS app.

Any idea what's missing? Any help would be much appreciated.

Thanks, Max

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Maximilian,

we will update you with the status once a problem is fixed. Sorry for the inconvenience.

Regards,

Anton

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Maximilian,

an issue if fixed now. You may model your device types, message types and devices. Thanks for reporting.

Regards,

Anton

0 Kudos

I just confirmed it. Thanks for making my day :smile:

former_member202335
Participant
0 Kudos

Hello Sven,

Do you know if this issue has this issue been resolved yet?

I created a device 'RaspberryPi_1' and was trying to post messages to it via HTTP. I do get a 200 response. However, I don't see any table corressponding to my device either.

Please look at the screen-shot I have attached.

Thanks in advance.

Regards,
Divyaman

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Divyaman,

can you please check with the embedded UI in MMS (Application Data tile) if it shows your table? (you might need to click on refresh control on top)

Regards,

Anton

former_member202335
Participant
0 Kudos

Hello Anton,

I was checking this in MMS itself. And I still could not see my table. However, I closed the MMS cockpit and started it again. I could then see my DB table.

Thanks for your help!

Regards,
Divyaman

Shibaji
Product and Topic Expert
Product and Topic Expert
0 Kudos

I have successfully enabled IoT service and was able to post message from MMS cockpit. However when I try to post message from the demo java application given in Github, it's giving a HTTP-200. However the data is not reflected in IOT table T_IOT_HTTP_PUSH. Also the response body is comprising following error message:

<html>

    <head>

        <meta http-equiv="cache-control" content="no-cache" />

        <meta http-equiv="pragma" content="no-cache" />

    </head>

    <body style="background-color:#FFFFFF" onload="var url=window.location.hash;if(url&&0!==url.length){var anchorCookie='oucrsbxakwpguqzuhlckbttsz_anchor=&quot;'+encodeURIComponent(url)+'&quot;';document.cookie=anchorCookie}document.forms[0].submit()">

        <p>

            <script language="javascript">document.write("Please wait ...");</script>

        </p>

        <noscript>

            <p>Note: Your browser does not support JavaScript or it is turned off. Press the button to proceed.</p>

        </noscript>

        <form method="post" action="https://accounts.sap.com/saml2/idp/sso/accounts.sap.com">

            <input type="hidden" name="SAMLRequest" value="PEF1dGhuUmVxdWVzdCB4bWxucz0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiB4bWxuczpuczI9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iIHhtbG5zOm5zMz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyIgeG1sbnM6bnM0PSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyMiIEFzc2VydGlvbkNvbnN1bWVyU2VydmljZVVSTD0iaHR0cHM6Ly9pb3RtbXNpMzA0Mjk2dHJpYWwuaGFuYXRyaWFsLm9uZGVtYW5kLmNvbS9jb20uc2FwLmlvdHNlcnZpY2VzLm1tcy92MS9hcGkvaHR0cC9wdXNoLzEzN2VkYzBlLTAzOWItNGUwOS05YTQxLTFmZDVmNGQxNzAyMiIgRGVzdGluYXRpb249Imh0dHBzOi8vYWNjb3VudHMuc2FwLmNvbS9zYW1sMi9pZHAvc3NvL2FjY291bnRzLnNhcC5jb20iIEZvcmNlQXV0aG49ImZhbHNlIiBJRD0iUzliNzdlNjY1LWFkM2QtNDJjYy1hZjExLTUxNDU1ZTZiZTQ1YS1SZWE2dXZXcHkxZE9PYllPMlZaSWNWY2FNemVHZjhLaHpnWGQ1Ylg4emk0IiBJc3N1ZUluc3RhbnQ9IjIwMTUtMDgtMTdUMDQ6NDk6NDMuOTM4WiIgVmVyc2lvbj0iMi4wIj48bnMyOklzc3Vlcj5odHRwczovL253dHJpYWwub25kZW1hbmQuY29tPC9uczI6SXNzdWVyPjxkczpTaWduYXR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QY1R6czhudEFNc1dYTDRRbnJhaDUweEx6RlpHWFllWkxyOTRvTEN1MEFQVExJcW05U0J4VDl5UWdYZU54VzFlME1hb3ZQK09WZHFyYStBZ1hGVURINUdHeVYxUFhjVDBCNFAzWTdtOWtmS1Y2RUd2OXNEK1BEOG1pQkIwbXY3bmlxMXlUWERNaDg0NUtYOFlOeG9NUmFsZmNKekVzSmU5aWZWY0VrbWxMSTBRSDliTkNmQjA5SlRQZGRrYy91N1hVTnZBOFAzam5IMWtEZlB3TDdKQ1k3TEJ5d1pHK0xtT2hoUT09PC9kczpTaWduYXR1cmVWYWx1ZT48L2RzOlNpZ25hdHVyZT48L0F1dGhuUmVxdWVzdD4="/>

            <input type="hidden" name="RelayState" value="oucrsbxakwpguqzuhlckbttsz"/>

            <noscript>

                <input type="submit" value="Continue"/>

            </noscript>

        </form>

    </body>

</html>

Former Member
0 Kudos

Hi Shibaji,

your request is forwarded to the HCP login page. That is why you get a 200 response. In order to be able to use the push API you need to enable Basic Auth for MMS and add the respective header to your HTTP request: https://github.com/SAP/iot-starterkit/tree/master/src/prerequisites/mms

Regards,

Thomas

Shibaji
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I changed the authentication setting and now I am getting the following error:

HTTP-500: Failed to forward a POST response from the destination to an origin.

BR

Shibaji

Shibaji
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks Thomas!! I changed the authentication setting and now that issue is resolved. However I am now getting HTTP-500: Failed to forward a POST response from the destination to an origin.

Former Member
0 Kudos

Hi,

I guess you are using the sample consumption UI from the starter kit. Are you sure you set up the destinations to MMS and RDMS correctly in your HCP account: https://github.com/SAP/iot-starterkit/tree/master/src/apps/java/consumption

The exception you get is fired from here: https://github.com/SAP/iot-starterkit/blob/master/src/apps/java/consumption/com.sap.iot.starterkit.u...

This means that you request could not be forwarded to MMS. It would be interesting to see what the IOException contains.

Regards,

Thomas

Shibaji
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks a lot Thomas!! Now my Java application is working fine.

Next, I would like to test if the same IoT APIs can be consumed (GET/POST) from an HTML5 application.

All I needed to do is to put the destinations iotmms and iotrdms on the account level and the application is working fine!!

Former Member
0 Kudos

Hi

I have been able to test message sending via Send & Receive messages HTTP in HCP data services.

However I am not able to send any data from outside ... tried using HTTP Push services of Chrome Postman, Hurl it and even Python.

I get the same error as below ... "Note: Your browser does not support Javascript or it is turned off. Press the button to proceed" ... if you have any idea on how to solve this error it will be great

Example from Postman

    <head>

        <meta http-equiv="cache-control" content="no-cache" />

        <meta http-equiv="pragma" content="no-cache" />

    </head>

    <body style="background-color:#FFFFFF" onload="var url=window.location.hash;if(url&&0!==url.length){var anchorCookie='oucrsowphuomgvylxblcaoyad_anchor=&quot;'+encodeURIComponent(url)+'&quot;';document.cookie=anchorCookie}document.forms[0].submit()">

        <p>

            <script language="javascript">document.write("Please wait ...");</script>

        </p>

        <noscript>

            <p>Note: Your browser does not support JavaScript or it is turned off. Press the button to proceed.</p>

        </noscript>

        <form method="post" action="https://accounts.sap.com/saml2/idp/sso/accounts.sap.com">

            <input type="hidden" name="SAMLRequest" value="PEF1dGhuUmVxdWVzdCB4bWxucz0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiB4bWxuczpuczI9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iIHhtbG5zOm5zMz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyIgeG1sbnM6bnM0PSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyMiIEFzc2VydGlvbkNvbnN1bWVyU2VydmljZVVSTD0iaHR0cHM6Ly9pb3RtbXNzMDAxMTA1NzcyMHRyaWFsLmhhbmF0cmlhbC5vbmRlbWFuZC5jb20vY29tLnNhcC5pb3RzZXJ2aWNlcy5tbXMvdjEvaW50ZXJuYWwvaHR0cC9kYXRhLzc1NTZmODBiLTIxMmYtNDNlMi05ZTBjLTdlY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zPjxkczpEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSIvPjxkczpEaWdlc3RWYWx1ZT5ySkVEM0Z2NWRzV0VGWUZPUyt0dHpNNXd5RDQ9PC9kczpEaWdlc3RWYWx1ZT48L2RzOlJlZmVyZW5jZT48L2RzOlNpZ25lZEluZm8+PGRzOlNpZ25hdHVyZVZhbHVlPlgyeFlxb3FNM3M5Qi9EeFd3NnJJQ002VU1DYXVwdkJydVhHYktvc25oZUJHdjVDbFJXNGV1Q3Nka2pqbUgybUhGZGU1eU1XbFBjYk9JdjBiQ3hIYUVhYlFzQmtFMXdacFJWQWllaitXYU5mKzBEM1J1SVdoVTdldndFYXROaFdWakNXaDlIakQwNWVIWHpXck0yRWlpMFBKYnpoK0c3UVVUbVRwdDlDanZlbmtrNkxjZ2hxSUw5cnpSLy9CNVFpbWxIQjZkZlRFazdwZjhqRXJmdStseGhQdWtKeHlnZDQzWXNhbCt3dnQwSlZPejE0bGQxRWtNUTY2MWZsKzB1WFNuRmhFNUp3LzBUMi9vbFpqLzdkMkNaRzdBSzhEaUFLN01GVGZIR0hFTVBIUEJ4OUE4U0lZZ3puSDZSVTF5THEwT3d6YWJqMnVnTkJKMzd6KzFhZFM2QT09PC9kczpTaWduYXR1cmVWYWx1ZT48L2RzOlNpZ25hdHVyZT48L0F1dGhuUmVxdWVzdD4="/>

            <input type="hidden" name="RelayState" value="oucrsowphuomgvylxblcaoyad"/>

            <noscript>

                <input type="submit" value="Continue"/>

            </noscript>

        </form>

    </body>

</html>

Example from Python

I have added my user to MMS group and also changed the authorization

Request help..............................

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Abhishek, you are using ../v1/internal/.. endpoint in your example. Please use ../v1/api/.. instead protected with oauth.

Former Member
0 Kudos

Thanks Anton a lot ..

It works now ... and I am able to send data from python to HCP :smile:

Vitaliy-R
Developer Advocate
Developer Advocate
0 Kudos

The latest release note for HCP says IoT now support binary data type: Release Notes for SAP HANA Cloud Platform

Are there any code samples available for using this binary data type? Thank you.

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Witalij,

IoT Starter Kit will be extended soon.

Regards,

Anton

0 Kudos

When enabling the IoT service I get this

Any ideas?

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gunnlaugur,

I would assume you are on Trial, right? Maybe some detailed message is there when you click on that tile? Or some output in browser console?

Regards,

Anton

0 Kudos

Hi Anton and thanks for reply-ing.

Yes on Trial.

No on the detailed messages and no message in the console for both IE and crome.

Regards,

Gunnlaugur

anton_levin
Product and Topic Expert
Product and Topic Expert

Hi Gunnlaugur,

would you mind to share your HCP (p- / s- user) either in here or privately by sending a SCN message to me (you need to follow me for a while to do that)? I will then forward your issue internally.

Sorry for inconvenience,

Anton

Former Member
0 Kudos

Hello Guillaume,

     Can you give me the code ? I want to  program a JAVA application with IOT service,but I can't understand the code from Github.


So,I want to refer to your code.Can you help me ?


  Regards,

  Brice

0 Kudos

Hi,

I have setup the IOT service and was able to send messages from the client on the cockpit. I can create message types and devices as well. I tried to post a message to a device and the data was sent to the IOT_HTTP_PUSH table.

Now when i tried to receive this message through a HTTP GET call as described in the demo. I keep getting a HTTP 401 error.

So in "Authentication Configuration" in the cockpit for my iot java application i enabled the different kinds of authentication. And yet i still receive the same error. I did ofcourse append user id and password in authorization for HTTP GET call.

How do i resolve this?

Regards,

Chetan Vasudev

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Chetan,

a minor remark first. If your MMS is of version 2.4 or higher then setting a "Custom" Authentication Configuration is not necessary anymore.

Regarding your issue. You speak here about getting messages pushed to the device, right? So, executing a HTTP GET against ../com.sap.iotservices.mms/v1/api/http/data/[device id]

That endpoint is protected with OAuth. Use your device token (Bearer: token) to authenticate and not the username:password (Basic u:p).

Regards,

Anton

0 Kudos

Thanks Anton. That worked,

Regards,

Chetan

0 Kudos

Hi there!
I'm using IOTMMS on the Europe HCP (not the trial HCP), but still there is a limit for devices (50!).
By creating devices via RDMS, I managed to squeeze in 67, but after that I always receive the error message, saying the limit is 50.
Why is the limit there and how can I deactivate it?

Thanks and regards,
Daniel

P.S:
The only information I can find is this:

"Please be aware that the number of devices is limited (refer to section Device)."


But under "Device" there is no mentioning of it...

Vlado
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Daniel,


Unless you are asking for clarification/correction of some part of the Blog or Document, please create a new Discussion marked as a Question. The Comments section of a Blog (or Document) is not the right vehicle for asking questions as the results are not easily searchable. Once your issue is solved, a Discussion with the solution (and marked with Correct Answer) makes the results visible to others experiencing a similar problem. If a Blog or Document is related, put in a link to it in the Discussion. Read the Getting Started documents (link at the top right of each SCN page) including The SCN Rules of Engagement.


Thanks,

--Vlado (Moderator)

0 Kudos

Hello,

I got a problem with deploying the Message Management Service.

The deployment of the Message Management Service in the Internet of Things Cockpit is successfully, but the java app iotmms is very long in the starting mode and is on failed after a few minutes.

I'm using IoTMMS on the Europe HCP (not the trail HCP).

Any idea what I did wrong?

Thanks for your help,

Felix

First Picture: Status summary of the iotmms app

Second Picture: Current metrics of the iotmms app

anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please, refer to MMS FAQ SAP HANA Cloud Platform Internet of Things Services

"..In Factory landscapes, you must create a binding manually. For more information, refer to section Managing Databases."

0 Kudos

Thanks for your quick response!!

It's started now :smile:

Former Member
0 Kudos
Hello,

I am trying to run this demo but I came across a weird problem.

Problem occurs in HCP, with my trial account.
There seems to be a problem when trying to access the service of IoT, within the Services available in HCP.
Every time I try to access the service cockpit ("Go to service" link) I get 6 errors, such as "Could not load hierarchies", "Could not load data types" etc.
Due to the above errors and as far as I understand, I am not able to add new message types or device types etc...

Any ideas about a solution?
Former Member
0 Kudos
Hi Prashanth,

I am facing the same issue. I have tried giving my User ID, but still the error persists.

"Access to the requested resource is forbidden (HTTP 403)."

Any suggestions ?

Regards,
Venkatesh.
anton_levin
Product and Topic Expert
Product and Topic Expert
Hello Venkatesh,

please ensure about two points:

- (if you are on Trial) you have assigned your user ID 'pXXX' to IoT-User role and not your account ID 'pXXXtrial'
- you start with a new browser session (role assignment takes an effect with new session only)

Regards,
Anton
anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos
Replied in this duplicated thread https://blogs.sap.com/2015/06/09/using-the-sap-hcp-iot-services/#comment-349899

P.S. Please, read rules of engagements http://go.sap.com/community/about/rules-of-engagement.html and do not cross-post
Former Member
0 Kudos
Hi Anton,

Thanks.

The second point worked.

Regards,
Venkatesh.
Former Member
0 Kudos
Hi Anton,

In the code snippet insert.py, how do I specify the device ID ? I have never done this. Could you please help ?

Regards,
Venkatesh.
anton_levin
Product and Topic Expert
Product and Topic Expert
0 Kudos
Unless you are asking for clarification/correction of some part of the Blog or Document, please create a new thread by "Asking a Question". The Comments section of a Blog (or Document) is not the right vehicle for asking questions as the results are not easily searchable. Once your issue is solved, a Discussion with the solution (and marked with Correct Answer) makes the results visible to others experiencing a similar problem. If a Blog or Document is related, put in a link to it in the Discussion. Read the rules of engagements http://go.sap.com/community/about/rules-of-engagement.html
Regards,
Anton (Moderator)

P.S. https://github.com/SAP/iot-starterkit/blob/master/src/code-snippets/python/hcp-iot-services/https/insert.py -> line #19 -> Device ID is a part of the URL
Former Member
0 Kudos
I'm sorry about this.

Regards,
Venkatesh.
Former Member
0 Kudos
Since the api is updated the ulr is outadated. Use the url for new api:

https://iotrdmsiotservices<USER_ID>trial.hanatrial.ondemand.com/com.sap.iotservices.dms/v2/api/deviceTypes/
guilherme_lahr
Explorer
0 Kudos
Hello.

Is it possible send data from SAPUI5 application to device without use Java? I saw starter kit but just found consuming using UI5.

Sending data from device to HCP is working well and i can consume it using OData API in UI5 application.

Sending data from IoT cockpit to device is working very well too, but now, i would like to send data from my UI5 application.

Is it possible? How can i do it?

I tried the code bellow but didn't work.
                                var sUrl = "/destinations/iotmms/v1/api/http/push/MY_DEVICE_ID";

jQuery.ajax({
type: 'GET',
contentType: "application/json;charset=utf-8",
dataType: "json",
url: sUrl,
xhrFields: {
withCredentials: true
},
beforeSend: function(request) {
request.setRequestHeader('Authorization', 'Bearer MY_TOKEN');
},
error: function(jqXHR, textStatus, errorThrown) {
if (jqXHR.status !== 0) {
sap.m.MessageToast.show("[".concat(jqXHR.status, "] ", jqXHR.statusText, " ", jqXHR.responseText));
}
},
success: function(oData, textStatus, jqXHR) {
if (oData === null || oData === undefined) {
sap.m.MessageToast.show("[WARNING] Received a null or undefined response object");
return;
}
}
});

Thanks and regards,
Guilherme