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
| Topic | Content |
|---|---|
$SYS/Coreflux/Version | Broker version JSON |
$SYS/Coreflux/License | License status |
$SYS/Coreflux/Config | Current configuration |
$SYS/Coreflux/Config/Users | User list (passwords masked) |
$SYS/Coreflux/Comms/Sessions | Active sessions |
$SYS/Coreflux/Comms/Clients | Connected clients |
$SYS/Coreflux/Actions/{name} | Action LoT code |
$SYS/Coreflux/Models/{name} | Model LoT code |
$SYS/Coreflux/Routes/{name} | Route LoT code |
$SYS/Coreflux/Rules/{name} | Rule LoT code |
Writable Topics
| Topic | Purpose |
|---|---|
$SYS/Coreflux/Command | Send broker commands |
$SYS/Coreflux/Config/New | Update configuration |
In This Page
| Section | Description |
|---|---|
| Command Topics | Send commands and receive responses |
| LoT Entity Topics | Access Actions, Models, Routes, and Rules code |
| Broker Information | Version, license, and resource usage |
| Configuration Topics | Current config, users, and rules |
| Connection Monitoring | Sessions, clients, and logins |
| Platform Topics | OS-specific communication and Python info |
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:
| Field | Value |
|---|---|
| Topic | $SYS/Coreflux/Command |
| Payload | -addAction DEFINE ACTION Heartbeat ON EVERY 10 SECONDS DO PUBLISH TOPIC "system/heartbeat" WITH TIMESTAMP "UTC" |
| Auth | Use root credentials |
$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:
| Field | Value |
|---|---|
| Topic | $SYS/Coreflux/Actions/Heartbeat |
$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:| Entity Type | Topic Pattern |
|---|---|
| All Actions | $SYS/Coreflux/Actions/# |
| All Models | $SYS/Coreflux/Models/# |
| All Routes | $SYS/Coreflux/Routes/# |
| All Rules | $SYS/Coreflux/Rules/# |
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.| Topic | Description |
|---|---|
$SYS/Coreflux/Resources/MemoryInfoTotal | Total available memory (bytes) |
$SYS/Coreflux/Resources/MemoryInfoUsage | Current memory usage (bytes) |
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
| Field | Description |
|---|---|
AllowedBaseTopic | Base topic restriction for the user |
AllowedSystemConfiguration | Can modify broker configuration |
AllowedAssetManipulation | Can add/remove LoT entities |
AllowedUserManagement | Can manage other users |
AllowedLogManagement | Can access and manage logs |
$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
| Field | Description |
|---|---|
BytesReceived | Total bytes received from client |
BytesSent | Total bytes sent to client |
ConnectedTimestamp | When the client connected |
Endpoint | Client IP and port |
Id | Client ID |
ProtocolVersion | MQTT protocol version (3=3.1, 4=3.1.1, 5=5.0) |
ReceivedApplicationMessagesCount | Messages received |
SentApplicationMessagesCount | Messages sent to client |
$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:

