Skip to content
JelinaJelina DocumentationTechnical documentation
Back to website

MQTT Upload

MQTT is a publish/subscribe network protocol. The MQTT plugin subscribes to and publishes topic messages through the protocol.

After loading configuration, the plugin connects to the configured MQTT server and receives upstream data. On receiving data, it checks selected data, upload interval, and aggregation settings. When all are configured, it aggregates data and uploads to uploadTopic. Without aggregation, buffered items and current data are uploaded to uploadTopic individually in sequence.

Note:

    1. An upstream acquisition plugin is required, or acquisition configuration contains no data.
    1. Once selected, a scheme’s state and contents cannot be changed in its acquisition node.

(1) Open CommBridge Digital Twin and switch to Device Connectivity.

Open Device Connectivity

(2) Drag Serial Communication, Data Processing, and MQTT Upload into the workspace to create three nodes.

Create MQTT upload nodes

(3) Connect Serial Communication → Data Processing → MQTT Upload.

Connect the MQTT data flow

(1) Double-click MQTT Upload and select Add scheme.

Add an MQTT scheme

(2) Enter connection settings and select Next.

MQTT connection settings

(3) Select Add group, enter group information, and confirm.

Configure an MQTT group

(4) Select data to upload and confirm.

Select MQTT upload data

(5) Select Finish to add the upload scheme.

Complete the MQTT scheme

(6) Enable the scheme and select Save.

Enable the MQTT scheme

(1) Select Deploy under Device Connectivity and wait for success.

Deploy MQTT upload

(2) Switch to Digital Twin and hover over MQTT Upload to show node information.

MQTT node information

(3) Open MQTTX and start a connection.

View uploads in MQTTX

Parameter Description Format Example
Scheme name User-defined scheme name Nonempty MQTT upload
Type MQTT service protocol mqtt:// or mqtts:// mqtt://
Host MQTT server address, running an MQTT broker Nonempty 172.21.78.153
Port MQTT server port 0-65535 1883
Qos MQTT quality of service 0, 1, or 2 0
Client ID MQTT client identifier Unrestricted
Username MQTT connection username Unrestricted
Password MQTT authentication password Unrestricted
Parameter Description Format Example
Group name User-defined group name Nonempty MQTT group 1
Upload (publish) Topic MQTT subscription topic Nonempty 1
Upload interval (ms) Server upload interval 0-4294967295 1000
Aggregate upload Whether to upload data together Yes or No No

If the upload interval is 0, the acquisition interval of the upload scheme determines it.

Select schemes configured in upstream acquisition data. Only selected schemes can upload to the MQTT server.