Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
WouterLemaire
Active Contributor
DescriptionHyperlink
OverviewHCP IoT HANA Car v1.0
Internet of Things configurationHANA Car v1.0 - Internet of Things configuration
UI5 Java WebappHANA Car v1.0 – Java Webapp
The Car with raspberry PiHANA Car v1.0 – Raspberry Pi

In this blog I explain the steps of the IoT configuration of the HANA car

Activate IoT

First I activated the Internet of Things service by following the documentation:

https://help.hana.ondemand.com/iot/frameset.htm?53ad6006e50f4b0ca02402daa6da5bb5.html

Once IoT is activated, you can open the configuration from subscriptions or java applications:

Configuration

In the IoT cockpit I’ve configured a Device Type:

Based on that device type I’ve create a device:

After that I created a message type. A message type is not connected to a device. The device and the message type are connected to a device type. That way you can reuse message types for other devices.

I only created one message type “Motor”. The others (hidden ones) are just for testing purpose. The device type is the same as for the device. The direction is “Bidirectional”, this is required to use the websocket inside IoT. With a websocket you don’t have to use polling to get new messages. A websocket will automatically inform you when there’s a new message for the device. In the case of the HANA car the response time is very important. For that reason I’ve chosen to use the websocket of the IoT service.

The messagetype will only contain a timestamp and an action:

The action will contain the direction of the car.

Testing

Now, we can already test our service. Goto “Send and receive messages through Websockets”.

Change the deviceid, messagetypeid and message content. After you click on send you’ll see a reply from the server.

IoT configuration is done! :smile:

Kind regards,

Wouter

1 Comment
Labels in this area