HANA Car v1.0 – Internet of Things configuration
|Overview||HCP IoT HANA Car v1.0|
|Internet of Things configuration||HANA Car v1.0 – Internet of Things configuration|
|UI5 Java Webapp||HANA Car v1.0 – Java Webapp|
|The Car with raspberry Pi||HANA Car v1.0 – Raspberry Pi|
In this blog I explain the steps of the IoT configuration of the HANA car
First I activated the Internet of Things service by following the documentation:
Once IoT is activated, you can open the configuration from subscriptions or java applications:
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.
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! 🙂
Thanks for Blog...I am planning to Build car with DHTT11 and raspberry PI