Parameter list
Parameters that influence the MQTT Message Queue (FB_IotMqttMessageQueue, FB_IotMqtt5MessageQueue
) as well as the dynamic memory used for the MQTT messages (TwinCAT Router memory):
Name | Type | Default value | Description |
---|---|---|---|
cMaxSizeOfMqttMessage | UDINT | 102400 | Maximum size in bytes of an MQTT message that can be collected in the message queue. If the If the |
cMaxSizeOfMqttMessageQueue | UDINT | 1024000 | Maximum size in bytes of an entire message queue including all collected MQTT messages. If the If the |
cMaxEntriesInMqttMessageQueue | UDINT | 1000 | Maximum number of messages in a message queue. |
Parameters that influence the inputs of an MQTT client (FB_IotMqttClient, FB_IotMqtt5Client
):
Name | Type | Default value | Description |
---|---|---|---|
cSizeOfMqttClientClientId | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the ClientId. |
cSizeOfMqttClientHostName | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the host name. |
cSizeOfMqttClientTopicPrefix | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the topic prefix. |
cSizeOfMqttClientUserName | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the user name. |
cSizeOfMqttClientUserPwd | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the user password. |
cSizeOfMqttWillTopic | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the Will-Topic. |
Parameters that influence the MQTT 5 properties:
Name | Type | Default value | Description |
---|---|---|---|
cSizeOfMqtt5ContentType | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the content type. |
cSizeOfMqtt5AuthMethod | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the authentication method. |
cSizeOfMqtt5AuthData | UDINT | 4096 | Maximum size in bytes of the authentication data. |
cSizeOfMqtt5ServerReference | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the server reference. |
cSizeOfMqtt5ReasonString | UDINT | 256 | Definition of the STRING size in bytes, which specifies the maximum length of the reason string. |
cMaxMqtt5UserProps | UINT | 20 | Maximum number of UserProperties that can be received with an MQTT 5 message or sent with the help of The processing of UserProperties in the PLC real-time task cycle requires a certain amount of time depending on the quantity, which is why it is better to keep it low. |