Configure MQTT publish buttons¶
Configure up to 12 publish buttons that send MQTT messages with a single click. Each button has a label, topic, and payload that you define in the Publish Buttons tab of the MQTT Settings dialog.
Before you start¶
- MQTT must be compiled into your build of AetherSDR (the dialog is guarded by the
HAVE_MQTTbuild gate). - An MQTT broker connection must be configured. See Configure MQTT broker connection.
Steps¶
- Open the MQTT Settings dialog: Settings > MQTT....
- Click the Publish Buttons tab.
- To add a button, click Add. A new row appears in the table with empty Label, Topic, and Payload cells.
- Double-click each cell and type the values you want.
- To remove one or more buttons, select their rows (click the row number on the left, or Ctrl-click multiple rows) and click Remove.
- Click Apply to save without closing, or Ok to save and close.
What each control does¶
| Control | Behavior | Limit |
|---|---|---|
| Add | Inserts a new row in the button table. Disabled when 12 rows are present. | 12 buttons maximum |
| Remove | Removes the selected rows from the button table. | β |
| Label (table cell) | Text displayed on the publish button in the MQTT applet. | Editable text |
| Topic (table cell) | MQTT topic string sent when the button is clicked. | Editable text |
| Payload (table cell) | MQTT payload string sent when the button is clicked. | Editable text |
Settings storage¶
- All button definitions are saved to
MqttSettings(nested JSON keybuttons) when you click Apply or Ok.
Tips¶
- Rows with empty Label, Topic, and Payload are omitted on save β you can leave unfinished rows.
- Button definitions are shared between the MQTT Settings dialog and the MQTT applet panel.
Related¶
- Configure MQTT broker connection (host, port, credentials, TLS)
- Configure MQTT subscriptions
Configure MQTT broker connection¶
Configure the connection between AetherSDR and your MQTT broker, including host, port, credentials, and TLS settings.
Before you start¶
- MQTT must be compiled into your build of AetherSDR (the dialog is guarded by the
HAVE_MQTTbuild gate).
Steps¶
- Open the MQTT Settings dialog: Settings > MQTT....
- In the Broker tab, configure the connection:
- Host: Enter the hostname or IP address of your MQTT broker. Default is
localhost. - Port: Enter the TCP port of your broker. Default is
1883. Valid range is 1β65535. The port automatically switches between 1883 and 8883 when you toggle TLS. - User: Enter the broker username if authentication is required (optional).
- Password: Enter the broker password if authentication is required (optional). The field is masked.
- Use TLS: Check to enable TLS encryption. Checking or unchecking this automatically flips the port between 1883 and 8883.
- CA cert: If TLS is enabled, enter the path to a CA certificate file, or click Browse to select one. Leave blank to use the system CA bundle. This field is only visible when TLS is checked.
- Click Apply to save without closing, or Ok to save and close.
What each control does¶
| Control | Behavior | Notes |
|---|---|---|
| Host | Broker hostname or IP address. | Stored in MqttHost. |
| Port | Broker TCP port. | Stored in MqttPort. Auto-switches between 1883 and 8883 when TLS is toggled. |
| User | Broker username (optional). | Stored in MqttUser. |
| Password | Broker password (optional, masked). | Stored in the system keychain when available; falls back to session-only storage otherwise. |
| Use TLS | Enables TLS encryption. | Stored in MqttTls. Shows/hides the CA cert row. |
| CA cert | Path to a CA certificate file. Blank means use the system CA bundle. | Stored in MqttCaFile. Row visible only when TLS is checked. |
| Apply | Saves all settings (connection, topics, buttons, password) without closing the dialog. | Part of the QDialogButtonBox with Ok and Cancel. |
Password storage¶
- When AetherSDR is built with keychain support, the password is stored in the system keychain (for example, Keychain on macOS, kwallet on Linux, or Credential Manager on Windows).
- When AetherSDR is built without keychain support, the password is stored in memory only and must be re-entered each time the application launches. It is never written to the settings store.
- If you previously stored the password in plaintext settings (from an older version), AetherSDR migrates it to the new storage method on first launch and removes the old plaintext copy.
Related¶
- Configure MQTT subscriptions
- Add or remove publish buttons
Configure MQTT subscriptions¶
Subscribe to MQTT topics and display their messages on the panadapter overlay. You define the list of subscribed topics in the Subscriptions tab of the MQTT Settings dialog.
Before you start¶
- MQTT must be compiled into your build of AetherSDR (the dialog is guarded by the
HAVE_MQTTbuild gate). - An MQTT broker connection must be configured. See Configure MQTT broker connection.
Steps¶
- Open the MQTT Settings dialog: Settings > MQTT....
- Click the Subscriptions tab.
- To add a subscription, click Add. A new row appears in the table.
- Double-click the Topic cell and type the topic string you want to subscribe to.
- To show messages on the panadapter overlay, check the Display checkbox for that row.
- To remove one or more subscriptions, select their rows and click Remove.
- Click Apply to save without closing, or Ok to save and close.
What each control does¶
| Control | Behavior | Notes |
|---|---|---|
| Add | Inserts a new row in the subscription table. | β |
| Remove | Removes the selected rows from the subscription table. | β |
| Topic (table cell) | MQTT topic string to subscribe to. | Editable text. |
| Display (table cell) | Checkbox; when checked, messages for this topic are shown on the panadapter overlay. | β |
Internal AetherSDR Topics¶
The Internal AetherSDR Topics group box at the bottom of the Subscriptions tab lists topics that AetherSDR subscribes to automatically whenever MQTT is connected. These subscriptions are read-only and cannot be removed.
AetherSDR automatically subscribes to these internal topics when the MQTT connection is established:
aethersdr/cw/decodeβ CW decoded textaethersdr/radio/stateβ Radio VFO / mode / TX stateaethersdr/ax25/rxβ AX.25 received frames
Settings storage¶
- All subscription definitions are saved to
MqttSettingswhen you click Apply or Ok.
Related¶
- Configure MQTT broker connection (host, port, credentials, TLS)
- Add or remove publish buttons