HiveMQ 4 Hello World Extension
Extension Type: Demonstration
License: Apache License 2.0
This Hello World extension sets a ClientLifecycleEventListener which logs the MQTT Version and identifier of every connecting and disconnecting client.
There is a Maven Archetype available to generate a basic extension from the IDE.
We strongly recommend to read the HiveMQ Extension Documentation to grasp the core concepts of HiveMQ extension development.
Clone this repository into a Java 11 maven project.
mvn packagegoal from Maven to build the extension.
Move the file: "target/hivemq-hello-world-extension-4.2.0-distribution.zip" to the directory: "HIVEMQ_HOME/extensions".
Unzip the file.
Connect with an MQTT client of your choice. You should see a log message with its identifier and MQTT version.
Awesome, you got your first HiveMQ 4 extension working.
Now read the HiveMQ Extension Documentation to see what extensions can do.
If you encounter any problems, we are happy to help. The best place to get in contact is our support.
If you want to contribute to HiveMQ Hello World Extension, see the contribution guidelines.
HiveMQ Hello World Extension is licensed under the
APACHE LICENSE, VERSION 2.0. A copy of the license can be found here.