Skip to main content

Embedded MQTT broker

Enabling the Embedded MQTT Broker

ThingPark Enterprise can be configured to use an embedded MQTT broker.

  1. Go to the TPE Configuration Cockpit module, in the "Feature settings" section. Set "MQTT broker" to Enabled, then define the desired username and password.

  2. Save the configuration

  3. Create an MQTT connection using the following parameters:

    1. Hostname: mqttbroker.actility.local:1883
    2. Protocol: TCP
    3. MQTT Username: The username configured in Cockpit
    4. MQTT Password: The password configured in Cockpit

  4. Once enabled, the embedded MQTT broker becomes accessible from outside the TPE node.
    Use the external FQDN or IP address of the server to connect. Example using the DEVEUI 0000000000000001:

    mosquitto_sub -h my.tpe.fqdn -u myusername -P mypassword -t mqtt/things/0000000000000001/uplink
WARNING

If the embedded MQTT service is restarted, all in-memory data will be lost.

Disabling the embedded MQTT broker

  1. Go to the TPE Configuration Cockpit module, in the Feature settings section. Set "MQTT broker" to "Disabled".

  2. Save the configuration

  3. Remove any MQTT connections configured with the hostname mqttbroker.actility.local:1883.

Ask AI