Overview
The Coreflux MQTT Broker provides a comprehensive set of$SYS topics that enable you to monitor broker status, read configuration, track connections, and access LoT entity code. These topics follow the MQTT standard convention of using the $SYS prefix for broker-specific information.
Why Use $SYS Topics?
When managing an MQTT broker in production, you need visibility into what’s happening inside. How many clients are connected? What version is running? What LoT entities are deployed? System topics give you this insight without external monitoring tools.Topic Hierarchy & Quick Reference
System topics in Coreflux follow a hierarchical structure:Read-Only Topics
Writable Topics
Command Topics
Send commands to the broker and receive responses through a publish/subscribe pattern.1
Subscribe to output
Using any MQTT client (such as MQTT Explorer), subscribe to
$SYS/Coreflux/Command/Output to receive responses2
Publish command
Publish your command to
$SYS/Coreflux/Command3
Receive response
The broker publishes the result to the output topic
$SYS/Coreflux/Command
Publish command strings to this topic to control the broker. Topic:$SYS/Coreflux/Command
Direction: Client → Broker
Example:
Use any MQTT client (such as MQTT Explorer) to publish to this topic. The message payload contains the command to execute:
$SYS/Coreflux/Command/Output
Subscribe to receive responses from commands. Topic:$SYS/Coreflux/Command/Output
Direction: Broker → Client
Example responses:
LoT Entity Topics
These topics contain the actual LoT code for each entity running in the broker.$SYS/Coreflux/Actions/{ActionName}
Contains the LoT code for the specified action. Topic Pattern:$SYS/Coreflux/Actions/{ActionName}
Payload: The complete LoT action definition
Example:
Subscribe to a specific action using MQTT Explorer or any MQTT client:
Payload received:
$SYS/Coreflux/Models/{ModelName}
Contains the LoT code for the specified model. Topic Pattern:$SYS/Coreflux/Models/{ModelName}
$SYS/Coreflux/Routes/{RouteName}
Contains the LoT code for the specified route. Topic Pattern:$SYS/Coreflux/Routes/{RouteName}
$SYS/Coreflux/Rules/{RuleName}
Contains the LoT code for the specified rule. Topic Pattern:$SYS/Coreflux/Rules/{RuleName}
Subscribe to All Entities
Use your MQTT client to subscribe to these wildcard topics:Broker Information
$SYS/Coreflux/Version
Broker version and build information. Topic:$SYS/Coreflux/Version
Payload:
$SYS/Coreflux/License
License status and feature availability. Topic:$SYS/Coreflux/License
Payload:
$SYS/Coreflux/Resources
Memory usage statistics for the broker.Configuration Topics
$SYS/Coreflux/Config
The current broker configuration as JSON. Topic:$SYS/Coreflux/Config
Payload:
To update the configuration, publish to
$SYS/Coreflux/Config/New. See Broker Configuration for details.$SYS/Coreflux/Config/Users
List of configured users (passwords are masked). Topic:$SYS/Coreflux/Config/Users
Payload:
User Permission Fields
$SYS/Coreflux/Config/Rules
Information about configured rules. Topic:$SYS/Coreflux/Config/Rules
Connection Monitoring
$SYS/Coreflux/Comms/Sessions
Active MQTT sessions. Topic:$SYS/Coreflux/Comms/Sessions
Payload:
$SYS/Coreflux/Comms/Clients
Detailed information about connected clients. Topic:$SYS/Coreflux/Comms/Clients
Payload:
Client Fields
$SYS/Coreflux/Comms/Logins
Login event information. Topic:$SYS/Coreflux/Comms/Logins
Example Payload:
Platform Topics
These topics are prefixed with the operating system identifier (e.g.,Linux-x64, Windows-x64).
The OS prefix matches your broker’s platform. Check
$SYS/Coreflux/Version to see the current OS identifier.$SYS//Python/Info
Python integration status and available scripts. Topic:$SYS/Linux-x64/Python/Info (example for Linux)
Payload:
$SYS//Comms/TCP/Listeners
Active TCP listeners (ports the broker is listening on). Topic:$SYS/Linux-x64/Comms/TCP/Listeners
Payload:
$SYS//Comms/TCP/ActiveConnections
Currently active TCP connections. Topic:$SYS/Linux-x64/Comms/TCP/ActiveConnections
Payload:
$SYS//Comms/UDP
UDP communication statistics. Topic:$SYS/Linux-x64/Comms/UDP
Access Control
By default, only authenticated users with appropriate permissions can access$SYS topics:
Next Steps
Broker Configuration
Configure your broker settings
Broker Commands
Learn all available broker commands

