-
In the Web UI, go to Settings > Station parameters.
-
Under the parameter group features, set the Active value to on for the parameter MQTT_1, if not already done.
-
Enable the kind of observations that you want.
- MQTT_OBSERVATIONS: Send observations that have been derived from the measurements given by the sensors
- MQTT_MEASUREMENTS: Send measurements that are given directly by the sensors
- STATION_STATUS: Send station status information
-
Under the parameter group mqtt_client_1, configure the connection to the data collection system.
- brokerURL
- The URL of the MQTT broker in the format
mqtt(s)://<URL>:<port>. Using
mqtts:// enables encryption. If the port is not specified,
the default port is used (
1883
for MQTT,8883
for MQTTS). - customCA
- Custom PEM-encoded Certificate Authority (CA) web server certificate for validating the server. Paste the certificate text in the field. If the field is empty, the system default CAs are used.
- username
- The username for basic MQTT authentication. If the field is empty, credentials-based authentication is disabled.
- password
- The password for basic MQTT authentication.
You can also change the quality of service (QoS) level, publishing interval, and other settings for the interface in the station parameters.
-
To save the changes and take them into use, select Save and restart
script.
When the script has restarted, refresh the browser to get the changes visible.
- Go to Configuration > Debug console, and check that there are no errors.