ETcIotMqttClientState

Syntax

TYPE ETcIotMqttClientState : 
(
MQTT_ERR_SUCCESS            :=0,
MQTT_ERR_NOMEM              :=1,
MQTT_ERR_PROTOCOL           :=2,
MQTT_ERR_INVAL              :=3,
MQTT_ERR_NO_CONN            :=4,
MQTT_ERR_CONN_REFUSED       :=5,
MQTT_ERR_NOT_FOUND          :=6,
MQTT_ERR_CONN_LOST          :=7,
MQTT_ERR_TLS                :=8,
MQTT_ERR_PAYLOAD_SIZE       :=9,
MQTT_ERR_NOT_SUPPORTED      :=10,
MQTT_ERR_AUTH               :=11,
MQTT_ERR_ACL_DENIED         :=12,
MQTT_ERR_UNKNOWN            :=13,
MQTT_ERR_ERRNO              :=14,
MQTT_ERR_EAI                :=15,
MQTT_ERR_PROXY              :=16,
MQTT_ERR_TLS_CA_NOTFOUND    :=17,
MQTT_ERR_TLS_CERT_NOTFOUND  :=18,
MQTT_ERR_TLS_KEY_NOTFOUND   :=19,
MQTT_ERR_TLS_CA_INVALID     :=20,
MQTT_ERR_TLS_CERT_INVALID   :=21,
MQTT_ERR_TLS_KEY_INVALID    :=22,
MQTT_ERR_TLS_VERIFY_FAIL    :=23,
MQTT_ERR_TLS_SETUP          :=24,
MQTT_ERR_TLS_HANDSHAKE_FAIL :=25,
MQTT_ERR_TLS_CIPHER_INVALID :=26,
MQTT_ERR_TLS_VERSION_INVALID:=27,
MQTT_ERR_TLS_PSK_INVALID    :=28,
MQTT_ERR_TLS_CRL_NOTFOUND   :=29,
MQTT_ERR_TLS_CRL_INVALID    :=30,
MQTT_ERR_FINALIZE_DISCONNECT:=31,
MQTT_ERR_BIND               :=32,
MQTT_ERR_BIND_ADDR_INUSE    :=33,
MQTT_ERR_BIND_ADDR_INVAL    :=34,
MQTT_ERR_CREATE             :=35,
MQTT_ERR_CREATE_TYPE        :=36,
MQTT_ERR_CONN               :=37,
MQTT_ERR_CONN_TIMEDOUT      :=38,
MQTT_ERR_CONN_HOSTUNREACH   :=39,
MQTT_ERR_TLS_CERT_EXPIRED   :=40,
MQTT_ERR_TLS_CN_MISMATCH    :=41
) DINT;
END_TYPE

Parameter

Value

Description

MQTT_ERR_SUCCESS

 

MQTT_ERR_NOMEM

 

MQTT_ERR_PROTOCOL

 

MQTT_ERR_INVAL

 

MQTT_ERR_NO_CONN

 

MQTT_ERR_CONN_REFUSED

 

MQTT_ERR_NOT_FOUND

 

MQTT_ERR_CONN_LOST

 

MQTT_ERR_TLS

 

MQTT_ERR_PAYLOAD_SIZE

 

MQTT_ERR_NOT_SUPPORTED

 

MQTT_ERR_AUTH

 

MQTT_ERR_ACL_DENIED

 

MQTT_ERR_UNKNOWN

 

MQTT_ERR_ERRNO

 

MQTT_ERR_EAI

 

MQTT_ERR_PROXY

 

MQTT_ERR_TLS_CA_NOTFOUND

 

MQTT_ERR_TLS_CERT_NOTFOUND

 

MQTT_ERR_TLS_KEY_NOTFOUND

 

MQTT_ERR_TLS_CA_INVALID

 

MQTT_ERR_TLS_CERT_INVALID

 

MQTT_ERR_TLS_KEY_INVALID

 

MQTT_ERR_TLS_VERIFY_FAIL

 

MQTT_ERR_TLS_SETUP

 

MQTT_ERR_TLS_HANDSHAKE_FAIL

 

MQTT_ERR_TLS_CIPHER_INVALID

 

MQTT_ERR_TLS_VERSION_INVALID

 

MQTT_ERR_TLS_PSK_INVALID

 

MQTT_ERR_TLS_CRL_NOTFOUND

 

MQTT_ERR_TLS_CRL_INVALID

 

MQTT_ERR_FINALIZE_DISCONNECT

 

MQTT_ERR_BIND

 

MQTT_ERR_BIND_ADDR_INUSE

 

MQTT_ERR_BIND_ADDR_INVAL

 

MQTT_ERR_CREATE

 

MQTT_ERR_CREATE_TYPE

 

MQTT_ERR_CONN

 

MQTT_ERR_CONN_TIMEDOUT

 

MQTT_ERR_CONN_HOSTUNREACH

 

MQTT_ERR_TLS_CERT_EXPIRED

 

MQTT_ERR_TLS_CN_MISMATCH