MQTT is a machine to machine protocol which supports a lightweight version of publish/subscribe messaging transport. It is therefore mostly used in Internet of Things (IoT) scenario. Typically speaking, devices will need to send messages to a MQTT broker.
For customers and partners using SAP, Rojo Consultancy B.V has developed a MQTT adapter for the SAP Hana Cloud Platform, Integration Services (SAP HCI). To read more about this adapter, refer to:
http://www.rojoconsultancy.com/en/products/mqtt-adapter
This tutorial will give you a step by step demonstration of how you can use the SAP HCI MQTT adapter.
Note that the MQTT adapter is not available by default in your SAP HCI tenant. You will need to purchase it from Rojo Consultancy.
For those who like to gain a deeper understanding of SAP HCI, you can refer to our book:
https://www.sap-press.com/sap-hana-cloud-integration_3979/
You have a number of devices deployed in the field. For sake of simplicity, assume that these are vending machines for selling different types of cookies. As the company owning the vending machines, you would like to have direct access (online) of the events happing on the vending machines.
For simplicity sake, assumes that these devices are pushing their events at mosquitto.org publicly available MQTT server. Mosquitto provides a free MQTT broker that can be used to ease your exploration of what is possible with our MQTT adapter.
Figure 1. Scenario
Because the focus of this article is how to use the MQTT adapter, to show case the feature of both sender and receiver adapter, we will pick the message from one MQTT topic (using the sender MQTT adapter) and push the message to another MQTT topic (using the receiver MQTT adapter). This scenario is depicted in the above Figure. We are assuming that your devices are already sending data to the MQTT broker.
Requirements
Figure 2. SAP HCI - Home
Figure 3. SAP HCI - New Integration Package
Figure 4. SAP HCI - Add Process Integration Artifact
Choose Ok to add the process integration artifact.
Figure 5. SAP HCI - Configuration Integration Flow
Figure 6. SAP HCI - Choose Adapter Type
Figure 7. SAP HCI - Configuration Integration Flow with Sender and Receiver MQTT Adapter
Figure 8. SAP HCI – General Tab in Sender MQTT Adapter
Figure 9. SAP HCI - Adapter Specific Tab in Sender MQTT Adapter
Figure 10. SAP HCI - Advanced Tab in Sender MQTT Adapter
Figure 11. SAP HCI – General Tab in Receiver MQTT Adapter
Figure 12. SAP HCI - Adapter Specific Tab in Receiver MQTT Adapter
Figure 13. SAP HCI - Advanced Tab in Receiver MQTT Adapter
The Last Will and Testament tab is not configured in this tutorial.
Figure 14. SAP HCI - Integration Flow Triggered for Deployment
And voila! You have finished your configuration and can now proceed with testing.
For the purpose of testing, you can use any MQTT client of your choice (like MQTT fx) to place a file in the topic that the sender adapter is reading. e.g: “amsterdam/buildingA/floor1/temperature”.
You can also find more information on this adapter at:
Youtube: https://www.youtube.com/watch?v=848tjsv3eiU
Webinar: http://go.sap.com/assetdetail/2016/07/16ab8200-807c-0010-82c7-eda71af511fa.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 |