User guide

iPhone & iPad

Connect to a broker

  1. Open the broker list and choose Add Broker (+).
  2. Give the connection a Name. Enter its Host and Port, and use a unique Client ID. Add a username and password if your broker requires them.
  3. In Advanced, select the broker’s Transport (TCP or WebSocket) and MQTT Version. For a WebSocket connection, enter the broker’s WebSocket path.
  4. Enable TLS when your broker expects an encrypted connection. For client-certificate authentication, follow the mutual TLS guide.
  5. Tap Test to check the settings, then Connect.

To receive a message, subscribe to its topic before publishing.

Subscribe to a topic →
iPhone & iPad

Chart a JSON value with JSONPath

A chart data source combines a topic with a JSONPath expression. For home/living-room/climate, use $.temperature to plot the temperature from each message.

Example MQTT payload · JSON
{
  "temperature": 22.4,
  "humidity": 46,
  "sensor": {
    "battery": 87
  }
}
  1. Connect to the broker publishing your sensor data. Open Live Charts and choose Add Chart (+), or Create Chart if this is your first chart.
  2. Enter a Chart Name and choose a chart type. On iPhone, select the broker in the editor. On iPad, the chart uses the selected broker.
  3. Enter the topic, JSONPath and unit for the temperature series.
Name
Temperature
Topic
home/living-room/climate
JSON Path
$.temperature
Unit
°C
  1. Choose a color and whether to Fill below line. Tap Save. As numeric readings arrive, they appear in the chart.
  2. To compare humidity, choose Add Data Source, use the same topic and $.humidity, and select the humidity unit. One chart supports up to two different units.

Nested values

$.sensor.battery selects 87. Keep the value numeric in the payload. Set its display unit in the data source.

A temperature and humidity chart with two axes on iPad
Temperature and humidity plotted together with separate units.

Inspect and export

Scrub across the chart to inspect values. Tap a data point to open its message details. To export the chart, open its ellipsis menu and choose Export PDF…. To compare the latest reading with the average or median, open Value Analysis.

If the chart is empty, check the connection, topic and numeric JSONPath result. For a new subscription without a retained message, publish a reading.

For more JSONPath examples, visit jsonpath.com ↗.

Mac, iPhone & iPad

Configure a dashboard

  1. Open Dashboard, create or select a dashboard, then choose the add button.
  2. Choose Single Value to display the latest reading, or a chart to see how it changes over time. Choose Topic Activity to track message frequency or Bandwidth Usage to track traffic in bytes. Broker Status shows the connection state.
  3. For a sensor value, select its broker and enter an exact topic such as home/living-room/climate. Use $.temperature for the JSON Path and choose °C as the unit.
  4. Choose a name, icon and color. To show when the last message arrived, enable the timestamp. You can also show the topic. Select Save.
  5. Drag items to reorder them. Open an item’s context menu to edit, rename or duplicate it.

Single Value items require an exact topic. A saved Single Value or Chart item can also become a native Home Screen widget.

iPhone & iPad

Add a Home Screen widget

  1. For a value widget, save a Single Value dashboard item. For a chart widget, save a Chart dashboard item with an exact topic and JSONPath. For an action widget, create a saved MQTT shortcut.
  2. On your Home Screen, touch and hold an empty area, then open the widget gallery through Edit → Add Widget.
  3. Search for MQTT Pro. Choose MQTT Value, MQTT Chart or MQTT Shortcuts, select a size and add it.
  4. Touch and hold the new widget and choose Edit Widget. Select the dashboard item or shortcut you created.

The system schedules widget updates. If the sensor publishes a retained message, the widget can read it as soon as it connects. Open the chart in MQTT Pro to follow incoming readings live.

See Apple’s guide to adding and editing Home Screen widgets.

iPhone & iPad

Run an MQTT shortcut based on a condition

This shortcut turns on a fan when the room temperature exceeds 25 °C.

In MQTT Pro

  • Create a Single Value dashboard item named “Living Room”. Use the climate topic and $.temperature.
  • Create an MQTT shortcut named “Fan On”. Select your fan’s broker, then enter its command topic and payload. For this example, use home/fan/set with {"state":"on"}.

In Apple Shortcuts

  1. Open Apple’s Shortcuts app and create a new shortcut.
  2. Search for MQTT Pro’s Get Dashboard Value action. Choose the “Living Room” dashboard item.
  3. The action returns text without a unit. Add Get Numbers from Input to convert that output for comparison. If it returns a list, add Get Item from List → First Item to select the single number.
  4. Add an If action. Use the resulting number and set the condition to is greater than 25.
  5. Inside the If branch, add MQTT Pro’s Run MQTT Shortcut action and select “Fan On”. Leave Otherwise empty if nothing should happen below the threshold.
  6. Name and run the shortcut. Confirm that the value can be read and that your device receives the command.
Get Dashboard ValueConvert to numberIf > 25Run Fan On

To schedule the shortcut, add a personal automation in Shortcuts.

The shortcut checks the condition each time it runs. Get Dashboard Value waits up to eight seconds for a retained or new reading before reporting a timeout.

Apple’s guides explain If conditions and personal automations in more detail.

Mac, iPhone & iPad

Configure mutual TLS and MQTT 5

With mutual TLS, the client verifies the broker’s certificate and the broker verifies the client’s certificate.

  1. Enter the broker’s hostname and TLS port, for example 8883 for MQTT over TLS.
  2. Enable TLS. Under Certificates, choose how to verify the broker. If a trusted certificate authority signed its certificate, select CA signed server certificate.
  3. Under Client Certificate, choose Select and import your client certificate. Under Client Key, import the matching private key.
  4. Choose Test, then Connect when the test succeeds. If it fails, check the hostname, certificate validity, matching key and the broker’s client-certificate requirements.

Enable MQTT 5

In Advanced, set MQTT Version to 5.0. Configure session expiry, receive maximum, packet size or topic aliases as needed.

In the send view, set publish properties such as Content Type, Message Expiry, Response Topic and Correlation Data. Shortcuts using an MQTT 5 broker have the same properties.

Session expiry controls how long the broker keeps a disconnected session. Message expiry controls how long an individual publication remains available for delivery.

Set a Last Will message

In the broker settings, expand Last Will Message. Enter a topic such as home/console/status and a message such as offline. Choose the QoS and enable Retain Message if new subscribers should receive the last status. Connect with these settings. If this client disconnects unexpectedly, the broker publishes the Will to that topic.

iPhone & iPad

Send a message with the code editor

  1. Connect to your broker and open Messages.
  2. Enter the destination topic. To reuse a message’s topic, choose Send Message to Topic in its detail menu.
  3. Choose JSON, XML, YAML, Base64, hexadecimal or plain text. Enter your payload in the editor.
  4. Choose the quality of service (QoS) and whether to retain the message. For MQTT 5, set any publish properties you need.
  5. Tap the send arrow.
Example scene command · JSON
{
  "scene": "Evening",
  "lights": {
    "state": "on",
    "brightness": 65
  },
  "transition": 2
}

With retain enabled, the broker stores the latest retained message for the topic and delivers it to new matching subscribers.

iPhone & iPad

Organize subscriptions as folders

  1. Open the active subscriptions for your broker and tap Add Topic Subscription (+).
  2. Enter a topic filter and choose a color for the subscription.
  3. Select the folder view. Topic levels separated by / appear as an expandable hierarchy.
  4. Open the relevant branch to select a topic and view its messages. Use the search field to narrow the subscription list.
One topic
home/kitchen/temperature
One level
home/+/temperature
A whole branch
home/#

+ matches one topic level. A final # matches the remaining levels. Open the topic tree to see topics from received messages.

iPhone & iPad

Inspect structured payloads and images

  1. Select a message, or tap a data point in a live chart. On iPhone, the message opens in a new view. On iPad, selecting a chart point opens its message in the side pane.
  2. In Topic & Payload, select the formatted view for JSON or XML.
  3. Select a chevron to expand a nested object.
  4. Choose Raw to open the original payload in the read-only editor. The editor detects the format.
  5. Tap an image preview to open it.

Use the message’s ellipsis menu to find actions such as subscribing to its topic, sending a message to the same topic and exporting messages.

Mac, iPhone & iPad

Sync settings with iCloud

  1. Sign in to the same Apple Account on each Mac, iPhone or iPad you want to sync and make sure iCloud is available on each device.
  2. Open MQTT Pro’s settings and choose iCloud Synchronization.
  3. Turn on Synchronize, then choose the configuration categories you want to share, such as brokers, subscriptions, dashboards, live charts and shortcuts.
  4. Open MQTT Pro on the other device. When the broker appears, connect to it to start receiving messages.

Message history and historical chart readings stay on each device.

Credentials and imported certificates are stored in Keychain. If you want to synchronize them too, review the separate Credentials & Security option in iCloud settings.

Mac

Add an item to the Mac menu bar

  1. In the Mac app, open Settings. In the Menu Bar section, turn on Enable menu bar app.
  2. Click the MQTT Pro icon in the macOS menu bar. Choose Configure Menu Bar to open Menu Bar Items.
  3. To add a reading, choose Add Dashboard Widget and configure its broker, exact topic and JSONPath. You can also add a Single Value item from Suggested from Dashboards.
  4. Under Message Publishing Shortcuts, choose the shortcuts to include in the menu bar.
  5. Choose Done. Open the menu bar panel to see your readings or run a shortcut.

Suggested dashboard items are copied to the menu bar. Edits to the copy leave the dashboard item unchanged.

Mac, iPhone & iPad

Troubleshoot connections and messages

Connection failed

Use Test in the broker settings. Check the host, port, transport, WebSocket path and TLS configuration against your broker’s settings. Verify your credentials and use a unique client ID. Check the broker log for the connection error. On Mac, select the broker in the main window and press ⌘L to open its log in a separate window.

Connected without messages

Compare the subscription filter with the publisher’s topic. MQTT topics are case-sensitive. Publish a test message to the topic. Unless the broker has a matching retained message, subscribing does not retrieve old messages.

Empty chart

Open a received message and confirm its JSON structure. Check that your JSONPath selects a number and that its topic matches the data source. Use $.temperature only when “temperature” is a top-level property.

Missing widget or shortcut item

Create and save the item in MQTT Pro first, then select it again in Edit Widget or the Shortcuts action. Value actions need a Single Value dashboard item; chart widgets need a Chart item.

Get Dashboard Value timeout

Get Dashboard Value needs a retained or newly published message. Ensure the broker is reachable from this device and that a reading arrives during the action’s wait period.

When contacting support, include your app version, device, and the relevant error message. Leave out passwords and private keys.
Mac & iPad

Inspect messages in a table

  1. In Messages, select a subscription. On Mac, click Message Table at the bottom of the send area. On iPad, use Show Message Table in the toolbar.
  2. Open Table Columns and choose the fields you want side by side. For MQTT 5 requests and replies, try Response Topic and Correlation Data.
  3. For a wildcard subscription, enable Color Rows by Topic to distinguish topics as messages arrive. Select a row to open its message details.
Mac message table with rows tinted by topic and columns for payload, QoS, retained status and direction.
The Direction column shows whether MQTT Pro sent or received each message.
Mac, iPhone & iPad

Analyze a chart’s stored readings

  1. Open a chart in Live Charts. In its ellipsis menu, choose Value Analysis. If the chart has multiple data sources, use Source to choose one.
  2. Under Stored Readings, compare the latest value with the minimum, maximum, average and median for that data source.
  3. Check Recent Trend for the direction of the latest readings. It uses up to 20 values and their timestamps. Choose Refresh to include newly received readings.

On Mac, choose Open in New Window in the chart header to keep the live chart visible alongside its analysis.

Value Analysis for the Living Room source showing the temperature JSON path, 48 readings, a median of 22.2 °C and no clear recent trend.