MQTTWillProperties (STRUCT)

TYPE MQTTWillProperties : STRUCT

Will properties (MQTT V5)

InOut:

Name

Type

Comment

bPayloadFormatIndicator

BYTE

Payload Format: 0: Binary Data, 1: UTF-8

udiMessageExpiryInterval

UDINT

Expiry interval of the message in seconds

wsContentType

WSTRING

MIME style content type of the payload

wsResponseTopic

WSTRING

Some applications or standards might wish to run a Request/Response interaction over MQTT. The Resopnse Topic can be used for this purpose.

udiCorrelationDataSize

UDINT

Size of the correlation data buffer |paCorrelationData|

paCorrelationData

POINTER TO BYTE

Pointer to correlation data buffer. The Correlation Data is used by the sender of the Request Message to identify which request the Response Message is for when it is received.

udiWillDelayInterval

UDINT

The Server delays publishing the Client’s Will Message until the Will Delay Interval (in seconds) has passed or the Session ends, whichever happens first.

userProperties

ARRAY [0..(MQTTParam.g_udiMaxUserProperties - 1)] OF MQTTStringPair

User defined properties