Getting Started with Coreflux Cloud Broker using MQTT Explorer
Introduction
Welcome to Coreflux MQTT Cloud Broker! This document will guide you through the steps to connect to the broker using MQTT Explorer, an intuitive tool for interacting with your MQTT broker. You will also learn how to manage users by adding, removing, and changing passwords through MQTT commands.
Requirements
- MQTT Explorer installed on your computer.
- Credentials provided by Coreflux - email with username / password / broker address
Connecting to Coreflux Cloud Broker
- Launch MQTT Explorer and initiate a new connection:
- Click the
+
icon to add a new connection. - Enter a connection name (e.g., "Coreflux Cloud Broker").
- Choose either
mqtts://
for encrypted connection (port 8883) orws://
for WebSockets (port 443). - Enter the broker address (
broker.example.com
). - Input the port number (
8883
formqtts://
or443
forws://
). - Provide the username and password as sent in your Coreflux welcome email.
- Select
Advanced
and enableTLS
if connecting viamqtts://
. -
Click
Save
. -
Subscribe to the topics in order to control the broker:
- Navigate to the
Subscribe
tab within MQTT Explorer. - Enter
#
to subscribe to all messages published to the broker. - Specifically, subscribe to
$SYS/Coreflux/Config/Users
to receive user configuration updates and$SYS/Coreflux/Command/#
to monitor command topics. - âš Word of Caution: Be careful about leaving your MQTT Explorer session open, as this user has the ability to control access within your broker.
- Navigate to the
-
Connect to the broker :
- Select your newly created connection profile.
- Click
Connect
to establish a connection with the Coreflux Cloud Broker.
Managing Users
Adding a New User
- Navigate to the
Publish
section after connecting to the broker. - In the
Topic
field, enter$SYS/Coreflux/Cloud/Command
or$SYS/Coreflux/Command
. - In the
Message
field, enter the add user command:-addUser <username> <password>
. - Example:
-addUser JohnDoe secure123
. - Click
Publish
.
Removing a User
- In the
Publish
section, enter the same topic as above. - For the
Message
, input the remove user command:-removeUser <username>
. - Example:
-removeUser JohnDoe
. - Click
Publish
.
Changing a User's Password
- Again, in the
Publish
section, use the same topic. - In the
Message
field, type the change password command:-changeUserPassword <username> <newPassword>
. - Example:
-changeUserPassword JohnDoe newSecure123
. - Click
Publish
.
Wrap it up 🌯
You are now ready to manage your MQTT users through MQTT Explorer. Remember to always maintain secure password practices and manage user access carefully. For further information and support, consult the Coreflux documentation or contact customer support.