Skip to content

MQTT Command Experience Overview

The MQTT Command Experience in Coreflux provides a powerful command-driven approach to managing your MQTT broker and IoT deployments. This experience is designed for developers and engineers who prefer direct control through commands rather than graphical interfaces.

Key Features

  • Direct Command Control: Interact with your MQTT broker through commands for precise configuration and management
  • Scripting & Automation: Easily integrate broker management into your scripts and automation workflows
  • Performance Optimization: Minimal overhead compared to graphical interfaces
  • Full Power & Flexibility: Access to all broker capabilities through command-line operations

When to Choose the MQTT Command Experience

The MQTT Command Experience is ideal for:

  • DevOps Engineers: Who need to automate IoT deployments
  • System Administrators: Managing multiple brokers in enterprise environments
  • IoT Developers: Building and testing sophisticated IoT applications
  • Edge Computing: Deployments where graphical interfaces aren't necessary

Getting Started

To begin using the MQTT Command Experience:

  1. Installation: Set up the Coreflux broker on your system
  2. Configuration: Configure your broker through JSON-based configuration
  3. Secure Connections: Set up TLS/SSL certificates for encrypted communications
  4. WebSockets: Configure WebSockets support for web-based clients

Command-Based Interaction

The MQTT Command Experience allows you to interact with Coreflux through topics. For example:

  • Send commands to $SYS/Coreflux/Command
  • Monitor system metrics through $SYS/Coreflux/Status
  • Deploy LOT (Language of Things) definitions through specific command topics
# Example: Publishing a command to add a model
mosquitto_pub -h localhost -p 1883 -u root -P password -t "$SYS/Coreflux/Command" -m "-addModel DEFINE MODEL Temperature WITH TOPIC 'sensors/temperature' ADD 'celsius' WITH TOPIC 'raw/temperature' AS TRIGGER ADD 'fahrenheit' WITH (celsius * 9/5 + 32)"

Integration with System as Code

The MQTT Command Experience works seamlessly with the System as Code approach:

  • Use VS Code with the LOT extensions to create and manage your IoT systems
  • Deploy definitions through MQTT commands
  • Combine with scripting for automated deployments

Next Steps

After setting up your broker with the MQTT Command Experience, explore:

For more information about available connectors, see the Connectors Overview.