Skip to content

Operation - MQTT Broker

ACME supports Mca, Mcc and Mcc' communication via MQTT. This binding must be enabled in the configuration file with the [client.mqtt].enable setting. The address and optionally the port of the MQTT broker must be configured as well.

MQTT Configuration Example
[mqtt]
enable = True
address = mqtt://mqtt.example.org
port = 1883

ACME does not bring an own MQTT broker. Instead any MQTT broker that supports at least MQTT version 3.1.x can be used. This can be either be an own operated or a public broker installation (see, for example, https://test.mosquitto.org). The connection details need to be configured in the [client.mqtt] section as well.

MQTT over WebSocket

ACME supports MQTT communication over WebSocket. This allows for MQTT messages to be sent and received over a WebSocket connection. The WebSocket settings must be configured in the [mqtt.websocket] section of the configuration file.

MQTT WebSocket Configuration Example
[mqtt.websocket]
enable = True
port = 8080

Note

The support for the communication over WebSockets must be enabled by the MQTT broker as well.