Connect to a station MQTT broker¶
This page explains how to open the MQTT applet and connect AetherSDR to a station MQTT broker so you can subscribe to topics, view incoming messages, and publish canned payloads.
Before you start¶
- Your MQTT broker is running and reachable from the machine running AetherSDR.
- You know the broker's hostname or IP address, port, and credentials (if any).
- AetherSDR was built with MQTT support (
HAVE_MQTT). If the MQTT tray button is absent, your build does not include this feature.
Steps¶
- If the applet panel is not visible, click
View > Applet Panelto show it. - Click the MQTT tray button on the right sidebar. The MQTT applet opens.
- In the Host field, enter the broker hostname or IP address. Default is
localhost. - In the Port field, enter the broker TCP port. Default is
1883. Valid range: 1β65535. - If the broker requires authentication, enter your credentials in the User and Pass fields. Both are optional and may be left blank.
- In the Topics field, enter a comma-separated list of topics to subscribe to. Leave blank if you only need to publish. To also overlay a topic's value on the panadapter, prefix it with
*. Example: - If the broker requires TLS, check the TLS checkbox. The port field switches automatically from
1883to8883. If you need a custom CA certificate, enter the file path in the CA cert field that appears. Leave CA cert blank to use the system CA bundle. - Click Enable (currently showing "Off") to connect. The button label changes to "On" and all settings are saved.
- Watch the status label to the right of the button. It reads "Connected" in green when the broker accepts the connection.
What each control does¶
| Control | Description | Default | Valid range | Setting key |
|---|---|---|---|---|
| Host | Broker hostname or IP address | localhost |
Any valid hostname or IP | MqttHost |
| Port | Broker TCP port | 1883 |
1β65535 | MqttPort |
| User | Broker username (optional) | (blank) | β | MqttUser |
| Pass | Broker password (optional, masked) | (blank) | β | MqttPass |
| Topics | Comma-separated subscription list; prefix with * to overlay on panadapter |
(blank) | β | MqttTopics |
| TLS | Enable TLS encryption; auto-switches port between 1883 and 8883; shows/hides CA cert row |
Off | On / Off | MqttTls |
| CA cert | Path to CA certificate file; blank uses the system CA bundle. Visible only when TLS is checked. | (blank) | β | MqttCaFile |
| Enable | Connects (On) or disconnects (Off); saves all settings on connect | Off | Off / On | β |
| Message log | Displays received messages as topic: value lines |
β | Last 50 entries | β |
Tips¶
- Settings are saved to persistent storage only when you click Enable to connect, not when you type them. If you edit the fields and close the applet without connecting, your changes are lost.
- The CA cert field and its label are hidden when TLS is unchecked. Check TLS first to make the row appear.
- The Message log keeps the last 50 message blocks. Older entries are dropped automatically.
- Publish buttons are only active while connected. See Add or remove custom publish buttons to configure them.
Troubleshooting¶
- Status label shows an error message instead of "Connected" β The broker refused the connection or is unreachable. Verify the Host, Port, and credentials. If TLS is enabled, confirm the broker is listening on port
8883and the CA certificate path is correct. - MQTT tray button is absent β AetherSDR was built without MQTT support. You need a build compiled with the
HAVE_MQTTflag. - Port did not switch when I checked TLS β The auto-switch only triggers if the current port value is exactly
1883(switching to8883) or8883(switching to1883). If you had entered a custom port, it is left unchanged. - Topics field accepts input but no messages appear β Confirm the broker is publishing to the exact topic strings entered. MQTT topic matching is case-sensitive.