CompareTopic

CompareTopic 1:

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

CompareTopic 2: 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.

CompareTopic 3: Inputs/outputs

Name

Type

Description

sTopic

STRING