Publishes a message. Payload is passed as a STRING variable.

Inputs

Parameter

Data type

Description

IN

BOOL

Triggers the subscribe request (see notes).

CnxID

STRING

Identifier of the connection in the fieldbus configuration.

Topic

STRING

Message topic – may contain wild chars.

Payload

STRING

Payload of the message.

QOS

DINT

Wished quality of service.

retain

BOOL

TRUE if the message must be retained in the broker.

Outputs

Parameter

Data type

Description

OK

BOOL

TRUE if the request is successfully sent.

Error

BOOL

TRUE if the request failed.


Created with the Personal Edition of HelpNDoc: Maximize Your Productivity with HelpNDoc's CHM Help File Creation Features