public interface MqttConnectCallback
MqttConnectCallback interface provides connection callback
 and enumerates the message types.| Modifier and Type | Field and Description | 
|---|---|
| static int | CONNECT_SUCCEEDEDMQTT connect succeeded. | 
| static int | MQTT_CONNECT_FAILEDMQTT connect failed. | 
| static int | MQTT_CONNECT_IDENTIFIER_ERRORConnection refused: Identifier rejected. | 
| static int | MQTT_CONNECT_MALFORMED_DATAConnection refused: Data in username or password is malformed. | 
| static int | MQTT_CONNECT_PROTOCOL_VER_ERRORConnection refused: Unacceptable protocol version | 
| static int | MQTT_CONNECT_SERVER_UNAVAILABLEConnection refused: Server unavailable. | 
| static int | MQTT_CONNECT_UNAUTHORIZED_CLIENTConnection refused: Unauthorized client. | 
| static int | SSL_CONNECT_FAILEDSSL connect failed. | 
| static int | TCP_CONNECT_FAILEDTCP connect failed. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onConnectEvent(int reason)Called when a connection event occurs. | 
static final int CONNECT_SUCCEEDED
static final int TCP_CONNECT_FAILED
static final int SSL_CONNECT_FAILED
static final int MQTT_CONNECT_FAILED
static final int MQTT_CONNECT_PROTOCOL_VER_ERROR
static final int MQTT_CONNECT_IDENTIFIER_ERROR
static final int MQTT_CONNECT_SERVER_UNAVAILABLE
static final int MQTT_CONNECT_MALFORMED_DATA
static final int MQTT_CONNECT_UNAUTHORIZED_CLIENT
void onConnectEvent(int reason)
reason - the event reason.MqttClient.connect(MqttConfig)