MQTT_CommandSubscriber (FB)ΒΆ
FUNCTION_BLOCK MQTT_CommandSubscriber
Function Block to receive Command over the Google Cloud Iot Core MQTT Bridge
- InOut:
Scope
Name
Type
Comment
Inout
MQTTBridgeInstance of the MQTT Bridge
Input
xEnableBOOLSubscribes a command
pbCommandPayloadPOINTER TO BYTE
Pointer to Command Payload
uiMaxCommandPayloadSizeUDINTMaximal size of Command Payload
eQoSMQTT.MQTT_QOSQuality of Service of the Command Subscriber
Output
eErrorOutput Error
eMQTTErrorMQTT.MQTT_ERRORError from MQTT
xSubscribeActiveBOOLSubcriber is active and lisenig
xReceivedBOOLReceived a message
xBusyBOOLxDoneBOOLxErrorBOOL