mqttSubN
Allows to subscribe to several topics.
Inputs
|
Inputs |
Data Type |
Description |
|
IN |
BOOL |
Triggers the subscribe request (see notes). |
|
CnxID |
STRING |
Identifier of the connection in the fieldbus configuration. |
|
Topics[] |
STRING |
Message topics – may contain wild chars. |
|
QOS |
DINT |
Wished quality of service. |
Outputs
|
Outputs |
Data Type |
Description |
|
OK |
BOOL |
TRUE if the request is successfully sent. |
|
Error |
BOOL |
TRUE if the request failed. |
Remarks
Empty strings in the topics array are ignored. You cannot pass more than 100 topics in the array.
The request is sent on a rising edge of the IN input. After that the outputs, either OK or Error, becomes TRUE.
On the falling edge of inputs both outputs are reset to FALSE .
Important
You can send only one request (subscribe, unsubscribe or publish) at a time.
mqttSubN |
|
IEC 61131-3 Automation platform > Programming - Reference guide > Driver specific function blocks > MQTT > mqttSubN |
Created with the Personal Edition of HelpNDoc: Simplify Your Help Documentation Process with a Help Authoring Tool

