HiveMQ Plugins: Client Status and Retained Messages Query Plugin
Our friends at ART+COM just released two of their HiveMQ plugins to the public. They are available on Github and may be useful to many MQTT deployments that need to utilize HTTP as an information channel.
HiveMQ Client Status Plugin
This plugin is unfortunately no longer available at Github.
This plugin exposes a HTTP GET endpoint to retrieve the currently connected and disconnected clients with their respective client identifiers and IP addresses. It is useful if you need to quickly check what clients are connected to the broker.
It creates a new HTTP GET endpoint /clients and returns a HTTP Response like this:
[ {
"clientId" : "another client",
"ip" : "127.0.0.1",
"connected" : true
}, {
"clientId" : "my-inactive-client",
"connected" : false
} ] HiveMQ Retained Message Query Plugin
This plugin is available in Github.
This plugin allows to query retained messages via HTTP instead of MQTT from HiveMQ. You can read about the motivation to write this plugin by the folks at ART+COM in the blog.
In short, this plugin exposes a HTTP Endpoint that expects a POST request with a query.
An example query could look like this:
{
"topic": "path/of/the/topic",
"depth": 0,
"flatten": false
} A response would look like this:
{
"topic": "path/of/the/topic",
"payload": "23",
"children": [
{
"topic": "path/of/child/topic",
"payload": "\"foo\""
}
]
} If you’re a MQTT.JS user, there is a small library called mqtt-topping by the ART+COM people that adds syntactic sugar for this plugin.
We hope you like the plugins as much as we do. Let us know in the comments what you think!
There's a whole suite of MQTT client libraries listed here. Do check out our MQTT Client Library page.
HiveMQ Team
Team HiveMQ shares deep expertise in MQTT, Industrial AI, IoT data streaming, Unified Namespace (UNS), and Industrial IoT protocols. Our blogs explore real-world challenges, practical deployment guidance, and best practices for building modern, reliable, and a secure data backbone on the HiveMQ platform, along with thought leadership shaping the future of the connected world.
We’re on a mission to build the Industrial AI Platform that transforms industrial data into real-time intelligence, actionable insights, and measurable business outcomes.
Our experts are here to support your journey. Have questions? We’re happy to help. Contact us.
