MQTT logger

The MQTT logger sends the data from the input channels in analytics binary format to an MQTT broker. The number of input channels (symbols) is configured via the Num Channels parameter. The data is collected and published in configurable packet sizes via the MQTT protocol to the specified destination.
Configuration options
- MQTT target: Target address of the MQTT broker, consisting of host and port (e.g. 127.0.0.1:1883). The already configured MQTT targets are reused from the TwinCAT Target Browser TcAnalytics Extension and displayed in the combo box. If an MQTT target from the TwinCAT Target Browser defines a connection with an MQTT broker with certificates, the following CA, Cert and Key File parameters are also set automatically.
- Topic: MQTT topic under which the data is published. Two loggers of the same type must not write to the same topic, otherwise they will overwrite each other. It is then not possible to start the analysis and a message appears.
- Samples Per Buffer: Number of samples that are collected before a data packet is sent.
- Compression Width: Compression width of the data. If the value is 0, no compression takes place.
- Num Channels: Number of input channels (symbols) to be sent to the MQTT broker.
- Use project hierarchy: Specifies whether the project hierarchy should be used in the MQTT topics.
- MQTT port (optional): Port of the MQTT broker (e.g. 1883 for unencrypted, 8883 for TLS-encrypted connections).
- Host (optional): Host name or IP address of the MQTT broker.
- User name (optional): User name for authentication on the MQTT broker.
- User password (optional): Password for authentication on the MQTT broker.
- Ca File (optional): Path to the CA certificate file for TLS-encrypted connections.
- Cert File (optional): Path to the client certificate file for TLS-encrypted connections.
- Key File (optional): Path to the private key file for TLS-encrypted connections.
- Key password (optional): Password for the private key file.
Output values
- New Result: Shows TRUE if new data was successfully sent, otherwise FALSE.
- Lost samples: Number of samples that were discarded due to a buffer overflow.
- Sent Samples: Total number of successfully sent samples.
- Current Timestamp (optional): Specifies the timestamp of the last transmission.