Publish and Receive MQTT Messages
2019-07-09
Intermediate
20 min.
Publish and receive MQTT messages in ABAP using the ABAP MQTT Client.
You will learn
- How to publish an MQTT message in ABAP
- How to receive MQTT messages in ABAP
Prerequisites
- Create an ABAP project in Eclipse
- The ABAP MQTT Client is available on ABAP Platform 1809 and above.
- You are using ABAP Development Tools.
In this tutorial, you will create a simple ABAP class that can publish and receive messages using the MQTT protocol.
Step 1: Create a new ABAP class
Step 2: Create the MQTT Client and connect to the broker
Step 3: Implement the PUBLISH method
Step 4: Publish an MQTT message
Step 5: Implement the ON_MESSAGE method
Step 6: Subscribe to an MQTT topic
Step 7: Test your program
Step 8: Unsubscribe and disconnect (optional)
Navigate tutorial steps
-
Step 1: Create a new ABAP class
-
Step 2: Create the MQTT Client and connect to the broker
-
Step 3: Implement the PUBLISH method
-
Step 4: Publish an MQTT message
-
Step 5: Implement the ON_MESSAGE method
-
Step 6: Subscribe to an MQTT topic
-
Step 7: Test your program
-
Step 8: Unsubscribe and disconnect (optional)
- Back to Top