Skip to main content

MQTT connection test

Use the browser's MQTT page to test authentication and message delivery independently of the physical sensor. Use only the broker and topics assigned to your installation.

Prepare credentials​

The page provides the current identity, an MQTT Key, a broker WebSocket URL, and Connect/Subscribe/Publish controls. A browser connection uses MQTT over WebSocket; a raw TCP broker address is not interchangeable with a WebSocket URL.

If an active key exists, use its saved secret. A newly generated secret is shown once; save it securely. Regenerate Key replaces the active key and devices using the old token will stop working until reconfigured. Do not regenerate it as the first response to a connection error.

Connect​

  1. Sign in with the installation's account and open its MQTT tool.
  2. Confirm the identity and enter the MQTT key privately.
  3. Check Broker URL (WebSocket), including its secure transport and any required path/port, against the supplied connection details.
  4. Select Connect MQTT and wait for the connected status. If it fails, record the error before retrying.

Subscribe and publish a test​

The tool displays your permitted user prefix separately from the editable topic suffix. Enter only the required suffix when the prefix is already shown. Never substitute another user's prefix.

  1. Choose a test suffix permitted for your installation that is not an actuator command.
  2. Select Subscribe first and confirm it appears in the subscribed list.
  3. In Publish Message, select the same full topic and enter a harmless test message, such as connection-check.
  4. Select Publish, then compare the received topic, payload and time.
  5. Remove the test subscription when finished.

A received test confirms the browser-to-broker messaging path. It does not prove that the hardware is online, its sensor works, or a feed history was saved. Verify those separately with data checks.

Check hardware reporting​

Subscribe to the exact topic specified for the device, then wait for its configured report interval. Compare the received device identifier and time with the physical unit. If the browser test works but the device is silent, check the device's transport, network, key and topic configuration.

For the warning products, follow their message protocol. For Magistrala, use its provisioning guide; do not mix the credentials or namespaces of the two services.