|
CommsChampion Ecosystem MQTT v5 Client
MQTT v5 Client Library.
|
Common definition for MQTT v5 clients. More...
#include <stdbool.h>Go to the source code of this file.
Classes | |
| struct | CC_Mqtt5AuthConfig |
| Authentication Configuration. More... | |
| struct | CC_Mqtt5AuthInfo |
| Authentication handshake information. More... | |
| struct | CC_Mqtt5ConnectBasicConfig |
| Configuration structure to be passed to the cc_mqtt5_client_connect_config_basic(). More... | |
| struct | CC_Mqtt5ConnectExtraConfig |
| Extra properties configuration of the "connect" operation. More... | |
| struct | CC_Mqtt5ConnectResponse |
| Response information from broker to "connect" request. More... | |
| struct | CC_Mqtt5ConnectWillConfig |
| Configuration structure to be passed to the cc_mqtt5_client_connect_config_will(). More... | |
| struct | CC_Mqtt5DisconnectConfig |
| Configuration structure of the "disconnect" operation. More... | |
| struct | CC_Mqtt5DisconnectInfo |
| Broker disconnection information. More... | |
| struct | CC_Mqtt5MessageInfo |
| Received message information. More... | |
| struct | CC_Mqtt5PublishBasicConfig |
| Configuration structure to be passed to the cc_mqtt5_client_publish_config_basic(). More... | |
| struct | CC_Mqtt5PublishExtraConfig |
| Configuration structure to be passed to the cc_mqtt5_client_publish_config_extra(). More... | |
| struct | CC_Mqtt5PublishResponse |
| Response information from broker to "publish" request. More... | |
| struct | CC_Mqtt5SubscribeExtraConfig |
| Extra subscription properties configuration structure. More... | |
| struct | CC_Mqtt5SubscribeResponse |
| Response information from broker to "subscribe" request. More... | |
| struct | CC_Mqtt5SubscribeTopicConfig |
| Topic filter configuration structure of the "subscribe" operation. More... | |
| struct | CC_Mqtt5UnsubscribeResponse |
| Response information from broker to "unsubscribe" request. More... | |
| struct | CC_Mqtt5UnsubscribeTopicConfig |
| Topic filter configuration structure of the "unsubscribe" operation. More... | |
| struct | CC_Mqtt5UserProp |
| Wraping structre of the single "User Property". More... | |
Macros | |
| #define | CC_MQTT5_CLIENT_MAJOR_VERSION 1U |
| Major verion of the library. | |
| #define | CC_MQTT5_CLIENT_MAKE_VERSION(major_, minor_, patch_) |
| Macro to create numeric version as single unsigned number. | |
| #define | CC_MQTT5_CLIENT_MINOR_VERSION 0U |
| Minor verion of the library. | |
| #define | CC_MQTT5_CLIENT_PATCH_VERSION 6U |
| Patch level of the library. | |
| #define | CC_MQTT5_CLIENT_VERSION CC_MQTT5_CLIENT_MAKE_VERSION(CC_MQTT5_CLIENT_MAJOR_VERSION, CC_MQTT5_CLIENT_MINOR_VERSION, CC_MQTT5_CLIENT_PATCH_VERSION) |
| Version of the library as single numeric value. | |
| #define | CC_MQTT5_MAX_TOPIC_ALIASES_LIMIT 0xffff |
| MQTT5 protocol limit to topic alias. | |
| #define | CC_MQTT5_SESSION_NEVER_EXPIRES 0xffffffff |
| Special value for "Session Expiry Interval" property to specify that session never expires. | |
Typedefs | |
| typedef CC_Mqtt5AuthErrorCode(* | CC_Mqtt5AuthCb) (void *data, const CC_Mqtt5AuthInfo *authInfoIn, CC_Mqtt5AuthInfo *authInfoOut) |
| Callback used to report incoming authentication data. | |
| typedef void(* | CC_Mqtt5BrokerDisconnectReportCb) (void *data, CC_Mqtt5BrokerDisconnectReason reason, const CC_Mqtt5DisconnectInfo *info) |
| Callback used to report unsolicited disconnection of the broker. | |
| typedef unsigned(* | CC_Mqtt5CancelNextTickWaitCb) (void *data) |
| Callback used to request termination of existing time measurement. | |
| typedef struct CC_Mqtt5Client * | CC_Mqtt5ClientHandle |
| Handle used to access client specific data structures. | |
| typedef void(* | CC_Mqtt5ConnectCompleteCb) (void *data, CC_Mqtt5AsyncOpStatus status, const CC_Mqtt5ConnectResponse *response) |
| Callback used to report completion of the "connect" operation. | |
| typedef struct CC_Mqtt5Connect * | CC_Mqtt5ConnectHandle |
| Handle for "connect" operation. | |
| typedef struct CC_Mqtt5Disconnect * | CC_Mqtt5DisconnectHandle |
| Handle for "disconnect" operation. | |
| typedef void(* | CC_Mqtt5ErrorLogCb) (void *data, const char *msg) |
| Callback used to report discovered errors. | |
| typedef void(* | CC_Mqtt5MessageReceivedReportCb) (void *data, const CC_Mqtt5MessageInfo *info) |
| Callback used to report new message received of the broker. | |
| typedef void(* | CC_Mqtt5NextTickProgramCb) (void *data, unsigned duration) |
| Callback used to request time measurement. | |
| typedef void(* | CC_Mqtt5PublishCompleteCb) (void *data, CC_Mqtt5PublishHandle handle, CC_Mqtt5AsyncOpStatus status, const CC_Mqtt5PublishResponse *response) |
| Callback used to report completion of the "publish" operation. | |
| typedef struct CC_Mqtt5Publish * | CC_Mqtt5PublishHandle |
| Handle for "publish" operation. | |
| typedef void(* | CC_Mqtt5ReauthCompleteCb) (void *data, CC_Mqtt5AsyncOpStatus status, const CC_Mqtt5AuthInfo *response) |
| Callback used to report completion of the "reauth" operation. | |
| typedef struct CC_Mqtt5Reauth * | CC_Mqtt5ReauthHandle |
| Handle for "reauth" operation. | |
| typedef void(* | CC_Mqtt5SendOutputDataCb) (void *data, const unsigned char *buf, unsigned bufLen) |
| Callback used to request to send data to the broker. | |
| typedef void(* | CC_Mqtt5SubscribeCompleteCb) (void *data, CC_Mqtt5SubscribeHandle handle, CC_Mqtt5AsyncOpStatus status, const CC_Mqtt5SubscribeResponse *response) |
| Callback used to report completion of the "subscribe" operation. | |
| typedef struct CC_Mqtt5Subscribe * | CC_Mqtt5SubscribeHandle |
| Handle for "subscribe" operation. | |
| typedef void(* | CC_Mqtt5UnsubscribeCompleteCb) (void *data, CC_Mqtt5UnsubscribeHandle handle, CC_Mqtt5AsyncOpStatus status, const CC_Mqtt5UnsubscribeResponse *response) |
| Callback used to report completion of the "unsubscribe" operation. | |
| typedef struct CC_Mqtt5Unsubscribe * | CC_Mqtt5UnsubscribeHandle |
| Handle for "unsubscribe" operation. | |
Common definition for MQTT v5 clients.
| typedef CC_Mqtt5AuthErrorCode(* CC_Mqtt5AuthCb) (void *data, const CC_Mqtt5AuthInfo *authInfoIn, CC_Mqtt5AuthInfo *authInfoOut) |
Callback used to report incoming authentication data.
| [in] | data | Pointer to user data object passed during callback registration. |
| [in] | authInfoIn | Pointer to authentication data received from broker. |
| [out] | authInfoOut | Pointer to authentication data to be sent to the broker. Expected to be filled by the callback. |