MQTT_SendTopicBinary (FUN)ΒΆ
FUNCTION MQTT_SendTopicBinary : WORD
This function publishes a binary payload to the specified MQTT topic.
The first payload_size bytes of payload are published. The output
sent is set to TRUE when the publish operation has been completed.
- InOut:
Scope
Name
Type
Comment
Return
MQTT_SendTopicBinaryWORDStatus code returned by the runtime (0 means "no errors").
Inout
idWORDOperation identifier used by the runtime.
Input
topicSTRING(127)MQTT topic name.
payloadARRAY [0..244] OF BYTE
Binary payload buffer to publish.
payload_sizeWORDNumber of bytes to publish from
payload.qosWORDQuality of Service level.
flagsWORDPublish options: 0-none, 1-retain.
Output
sentBOOLTRUEwhen the publish operation has completed completed.