MQTT_ConfigSubscriber (FB)ΒΆ

FUNCTION_BLOCK MQTT_ConfigSubscriber

Function Block to receive device Configuration over the Google Cloud Iot Core MQTT Bridge

InOut:

Scope

Name

Type

Comment

Inout

MQTTBridge

MQTT_Bridge

Instance of the MQTT Bridge

Input

xEnable

BOOL

Subscribes configuration changes

pbConfigPayload

POINTER TO BYTE

Pointer to Configuration Payload

uiMaxConfigPayloadSize

UDINT

Maximal size of Configuration Payload

eQoS

MQTT.MQTT_QOS

Quality of Service of the Configuration Subscriber

Output

eError

Error

Output Error

eMQTTError

MQTT.MQTT_ERROR

Error from MQTT

xSubscribeActive

BOOL

Subcriber is active and lisenig

xReceived

BOOL

Received a message

xBusy

BOOL

xDone

BOOL

xError

BOOL