Configuration
The MQTT diagnostics interface is configured in the /boot/data/mtgw/diagnostics.json file.
Fields
enabled
Boolean field that enables or disables the diagnostics interface
host
Hostname or IP address for the MQTT broker
port
MQTT broker port
userName
username for MQTT broker login
password
Password for MQTT broker login
useTls
Boolean fields that enables or disables TLS encryption
rootCertificates
List of root certificates for the MQTT broker. The actual certificates are structured as an array of base64 strings for better readability. Please see the example below
Example
{
"enabled":true,
"host":"192.168.1.1",
"port":1883,
"userName":"admin",
"password":"password",
"useTls":true,
"rootCertificates":[
{
"format":"pem",
"data":[
"-----BEGIN CERTIFICATE-----",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxy012",
"abcdefghijklmnopqrstuvwxy",
"-----END CERTIFICATE-----"
]
}
]
}