Dequeue

Dequeue 1:

The method returns the return value TRUE if the removal of an MQTT message from the queue was successful. The number of MQTT messages currently in the queue (nQueuedMessages property) is reduced by one through the removal of a message.

Syntax

METHOD Dequeue : BOOL
VAR_INPUT
    fbMessage : REFERENCE TO FB_IotMqttMessage;
END_VAR

Dequeue 2: Return value

Name

Type

Description

Dequeue

BOOL

The method returns the return value TRUE if the call was successful.

Dequeue 3: Inputs

Name

Type

Description

fbMessage

REFERENCE TO FB_IotMqttMessage

For the message itself the reference is transferred to an instance of type FB_IotMqttMessage.