public interface MqttConnectCallback
MqttConnectCallback
interface provides connection callback
and enumerates the message types.Modifier and Type | Field and Description |
---|---|
static int |
CONNECT_SUCCEEDED
MQTT connect succeeded.
|
static int |
MQTT_CONNECT_FAILED
MQTT connect failed.
|
static int |
MQTT_CONNECT_IDENTIFIER_ERROR
Connection refused: Identifier rejected.
|
static int |
MQTT_CONNECT_MALFORMED_DATA
Connection refused: Data in username or password is malformed.
|
static int |
MQTT_CONNECT_PROTOCOL_VER_ERROR
Connection refused: Unacceptable protocol version
|
static int |
MQTT_CONNECT_SERVER_UNAVAILABLE
Connection refused: Server unavailable.
|
static int |
MQTT_CONNECT_UNAUTHORIZED_CLIENT
Connection refused: Unauthorized client.
|
static int |
SSL_CONNECT_FAILED
SSL connect failed.
|
static int |
TCP_CONNECT_FAILED
TCP 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 MQTT_CONNECT_FAILED
static final int MQTT_CONNECT_IDENTIFIER_ERROR
static final int MQTT_CONNECT_MALFORMED_DATA
static final int MQTT_CONNECT_PROTOCOL_VER_ERROR
static final int MQTT_CONNECT_SERVER_UNAVAILABLE
static final int MQTT_CONNECT_UNAUTHORIZED_CLIENT
static final int SSL_CONNECT_FAILED
static final int TCP_CONNECT_FAILED
void onConnectEvent(int reason)
reason
- the event reason.MqttClient.connect(MqttConfig)