MQTT client connect API definition and related functions.
More...
#include <aws_iot_mqtt_client.h>
#include "aws_iot_mqtt_client_interface.h"
#include "aws_iot_mqtt_client_common_internal.h"
|
| enum | MQTT_Connack_Return_Codes {
CONNACK_CONNECTION_ACCEPTED = 0,
CONANCK_UNACCEPTABLE_PROTOCOL_VERSION_ERROR = 1,
CONNACK_IDENTIFIER_REJECTED_ERROR = 2,
CONNACK_SERVER_UNAVAILABLE_ERROR = 3,
CONNACK_BAD_USERDATA_ERROR = 4,
CONNACK_NOT_AUTHORIZED_ERROR = 5
} |
| |
Called to send a disconnect message to the broker. This is the internal function which is called by the disconnect API to perform the operation. Not meant to be called directly as it doesn't do validations or client state changes
- Parameters
-
| pClient | Reference to the IoT Client |
- Returns
- An IoT Error Type defining successful/failed send of the disconnect control packet.
Called to establish an MQTT connection with the AWS IoT Service using parameters from the last time a connection was attempted Use after disconnect to start the reconnect process manually Makes only one reconnect attempt. Sets the client state to pending reconnect in case of failure
- Parameters
-
| pClient | Reference to the IoT Client |
- Returns
- An IoT Error Type defining successful/failed connection
Called to establish an MQTT connection with the AWS IoT Service This is the outer function which does the validations and calls the internal connect above to perform the actual operation. It is also responsible for client state changes
- Parameters
-
| pClient | Reference to the IoT Client |
| pConnectParams | Pointer to MQTT connection parameters |
- Returns
- An IoT Error Type defining successful/failed connection
Called to send a disconnect message to the broker. This is the outer function which does the validations and calls the internal disconnect above to perform the actual operation. It is also responsible for client state changes
- Parameters
-
| pClient | Reference to the IoT Client |
- Returns
- An IoT Error Type defining successful/failed send of the disconnect control packet.