Skip to Content

Few weeks back Hybrid Application Toolkit (HAT) version 1.16 was released. This comes with an experimental feature around the Internet of Things.  This is currently available only in trial SAP Web IDE instances.

I think it’s a great step in simplifying the consumption of IoT services for developers within Web IDE. We no longer need to switch to IoT service cockpit to manage devices and message types. Everything can be done within your Web IDE.

Ensure that you have enabled the Internet of Things service.

From the IoT service cockpit, create a device type, message type and device.

In the HCP Destinations, add the below two destinations.

URL : https://iotmms<account>trial.hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/

URL: https://iotrdmsiotservices-<account>trial.hanatrial.ondemand.com/com.sap.iotservices.dms/api/

Launch SAP Web IDE and enable the HAT plugin. You will be able to see “SAP HANA Cloud Platform Services” under tools menu.

The system will give you a screen which helps you to manage Device, Device Types and Message types. In the below screen, it shows the existing device type and device created earlier in the IoT service cockpit.

You can add more device types and message types directly from this screen without the need to switch to the IoT service cockpit.

To be able to invoke APIs related to IoT services, right-click on the project and click on “Inject Internet of Things API library”.

The system will generate IOT.js file. You can change the namespace and adapt the code if required.

To be able to use the destinations created in the HCP destinations, add the below entries in neo-app.json file

There are several APIs which have been made available to directly interact with the IoT services. You will be able to find the list of APIs in SAP Help. Go ahead and start consuming IoT services within Web IDE using the above steps.

To report this post you need to login first.

6 Comments

You must be Logged on to comment or reply to a post.

  1. Colin Kraczkowsky

    Great blog, thank you.

    It seems that you’re pretty experienced with HAT 🙂 We’ve noticed that getting it running and general configuration has been a pain point for a number of users – are you aware of a blog that touches on that?

    (0) 
    1. Murali Shanmugham Post author

      Thanks Colin,

      I agree with you. It took me also couple of hours to get HAT working on my laptop. I am waiting for HAT to be integrated into WebIDE as Cloud Build option.

      Please use this blog on how to install & use HAT. BTW, I am no expert on HAT.

      Thanks.,

      Murali

      (0) 

Leave a Reply