Example how to connect Reduxi Configurator with MQTT broker?
Connect Reduxi Configurator to an MQTT broker, with an example.
Let us follow Reduxi Controller - MQTT API technical documentation.
1. Log in to Reduxi Configurator
2. Get credentials of your MQTT broker; for example, you can use EMQX Cloud Console
Text description of this image
Screenshot of a deployment overview page of an MQTT broker cloud console (cropped at the top). Heading: deployment-z0fed0b1 with an orange tag Serverless. Two boxes: Instance status: green tick, Running, Created At: 2023.04.05 15:08. Sessions (with help icon): 1 / 1000, with an empty progress bar. List: Deployment Name: deployment-z0fed0b1 (copy and edit icons); Address: z0fed0b1.ala.us-east-1.emqxsl.com (green link, copy icon); Ports: 8883(mqtts), 8084(wss) (green, with two small icons); Spend Limit: $0.00 (edit icon).
Text description of this image
Screenshot of the Authentication page of an MQTT broker console (EMQX). Heading: Authentication with a help icon. A search field with the placeholder Username, a green button Search, and a green button + Add on the right. Table with columns Username and Actions. One row: Username: test; Actions: edit (pencil) icon and delete (bin) icon.
3. Configure MQTT connection and click Save
Text description of this image
Screenshot of the MQTT settings page of the Reduxi Configurator. Top table: Host: z0fed0b1.ala.us-east-1.emqxsl.com; Connected: red circle with a white cross (not connected). Section Mqtt connection: Host: z0fed0b1.ala.us-east-1.emqxsl.com; Port: 8883; Username: test; Password: test (shown as text). Three file fields, each with a dark button Izberi datoteko [Choose file] and the text Izbrana ni nobena datoteka. [No file selected]: Server CA chain (PEM format); Client public certificate (PEM format); Client private key (PEM format). Readout interval: 1 s. Buttons: Clear connection configuration (light) and Save (dark, bottom right).
4. Please refresh the page to see if the Reduxi Controller did make a successful connection in the background
5. Check MQTT broker statistics to see if everything is working
Text description of this image
Screenshot of four line charts from an MQTT broker cloud console, x axes with times from 2023-04-06 12:22 to 13:04. Sessions: y axis 0 to 3; the line is at 1 for the whole period and rises to 3 at the right end. Messages: y axis 0 to 300; the Received messages line stays at about 260 for the whole period; the Sent messages line is at 0; legend: Received messages, Sent messages. Traffic: y axis 0 to 300; the line stays at about 260 with regular short dips to about 190 to 200 (seven dips); the Sent line is near 0; legend: Received (KiB), Sent (KiB), Total traffic (KiB). Dropped Messages: y axis 0 to 1; the line is flat at 0; legend: Number of messages dropped in delivery, Number of messages dropped when expired, Number (cut off), with a page indicator 1/2.
6. You can now connect to your MQTT broker, receive and use data based on your needs