CompareTopic

This method returns TRUE, if the specified topic is identical to the topic of the MQTT message in the function block.
Syntax
METHOD CompareTopic : BOOL
VAR_IN_OUT CONSTANT
sTopic : STRING; // topic string with any length (attend that MQTT topics are case sensitive)
END_VAR
Return value
Name | Type | Description |
---|---|---|
CompareTopic | BOOL | Is TRUE, if the specified topic is identical to the topic of the MQTT message in the function block. |
Inputs/outputs
Name | Type | Description |
---|---|---|
sTopic | STRING |
|