MQTT_SendTopicInteger (FUN)ΒΆ

FUNCTION MQTT_SendTopicInteger : WORD

This function publishes an integer value to the specified MQTT topic.

The output sent is set to TRUE when the publish operation has been completed.

InOut:

Scope

Name

Type

Comment

Return

MQTT_SendTopicInteger

WORD

Status code returned by the runtime (0 means "no errors").

Inout

id

WORD

Operation identifier used by the runtime.

Input

topic

STRING(127)

MQTT topic name.

payload

DWORD

Integer value to publish.

qos

WORD

Quality of Service level.

flags

WORD

Publish options: 0-none, 1-retain.

Output

sent

BOOL

TRUE when the publish operation has been completed.