CommsChampion Ecosystem MQTT v3.1.1 Client
MQTT v3.1.1 Client Library.
|
Typedefs | |
typedef struct CC_Mqtt311Disconnect * | CC_Mqtt311DisconnectHandle |
Handle for "disconnect" operation. | |
Functions | |
CC_Mqtt311ErrorCode | cc_mqtt311_client_disconnect (CC_Mqtt311ClientHandle handle) |
Prepare, and send "disconnect" request in one go. | |
CC_Mqtt311ErrorCode | cc_mqtt311_client_disconnect_cancel (CC_Mqtt311DisconnectHandle handle) |
Cancel the allocated "disconnect" operation. | |
CC_Mqtt311DisconnectHandle | cc_mqtt311_client_disconnect_prepare (CC_Mqtt311ClientHandle handle, CC_Mqtt311ErrorCode *ec) |
Prepare "disconnect" operation. | |
CC_Mqtt311ErrorCode | cc_mqtt311_client_disconnect_send (CC_Mqtt311DisconnectHandle handle) |
Send the configured "disconnect" operation to broker. | |
typedef struct CC_Mqtt311Disconnect* CC_Mqtt311DisconnectHandle |
Handle for "disconnect" operation.
Returned by cc_mqtt311_client_disconnect_prepare() function.
CC_Mqtt311ErrorCode cc_mqtt311_client_disconnect | ( | CC_Mqtt311ClientHandle | handle | ) |
Prepare, and send "disconnect" request in one go.
Abstracts away sequence of the following functions invocation:
[in] | handle | Handle returned by cc_mqtt311_client_alloc() function. |
CC_Mqtt311ErrorCode cc_mqtt311_client_disconnect_cancel | ( | CC_Mqtt311DisconnectHandle | handle | ) |
Cancel the allocated "disconnect" operation.
[in] | handle | Handle returned by cc_mqtt311_client_disconnect_prepare() function. |
CC_Mqtt311DisconnectHandle cc_mqtt311_client_disconnect_prepare | ( | CC_Mqtt311ClientHandle | handle, |
CC_Mqtt311ErrorCode * | ec | ||
) |
Prepare "disconnect" operation.
For successful operation the client needs to be in the "connected" state and there were no other prepared or complete "disconnect" operation since last "connect" operation.
[in] | handle | Handle returned by cc_mqtt311_client_alloc() function. |
[out] | ec | Error code reporting result of the operation. Can be NULL. |
CC_Mqtt311ErrorCode cc_mqtt311_client_disconnect_send | ( | CC_Mqtt311DisconnectHandle | handle | ) |
Send the configured "disconnect" operation to broker.
[in] | handle | Handle returned by cc_mqtt311_client_disconnect_prepare() function. |