|
CommsChampion Ecosystem MQTT-SN Client
MQTT-SN client library.
|
Common definition for MQTT-SN clients. More...
#include <stdbool.h>Go to the source code of this file.
Classes | |
| struct | CC_MqttsnConnectConfig |
| Configuration the "connect" operation. More... | |
| struct | CC_MqttsnConnectInfo |
| Information on the "connect" operation completion. More... | |
| struct | CC_MqttsnGatewayInfo |
| Gateway information. More... | |
| struct | CC_MqttsnMessageInfo |
| Incoming message information. More... | |
| struct | CC_MqttsnPublishConfig |
| Configuration the will for "publish" operations. More... | |
| struct | CC_MqttsnPublishInfo |
| Information on the "publish" operation completion. More... | |
| struct | CC_MqttsnSleepConfig |
| Configuration the "sleep" operation. More... | |
| struct | CC_MqttsnSubscribeConfig |
| Configuration the "subscribe" operation. More... | |
| struct | CC_MqttsnSubscribeInfo |
| Information on the "subscribe" operation completion. More... | |
| struct | CC_MqttsnUnsubscribeConfig |
| Configuration the "unsubscribe" operation. More... | |
| struct | CC_MqttsnWillConfig |
| Configuration the will for "connect" and "will" operations. More... | |
| struct | CC_MqttsnWillInfo |
| Information on the "will" operation completion. More... | |
Macros | |
| #define | CC_MQTTSN_CLIENT_MAJOR_VERSION 2U |
| Major verion of the library. | |
| #define | CC_MQTTSN_CLIENT_MAKE_VERSION(major_, minor_, patch_) |
| Macro to create numeric version as single unsigned number. | |
| #define | CC_MQTTSN_CLIENT_MINOR_VERSION 0U |
| Minor verion of the library. | |
| #define | CC_MQTTSN_CLIENT_PATCH_VERSION 10U |
| Patch level of the library. | |
| #define | CC_MQTTSN_CLIENT_VERSION CC_MQTTSN_CLIENT_MAKE_VERSION(CC_MQTTSN_CLIENT_MAJOR_VERSION, CC_MQTTSN_CLIENT_MINOR_VERSION, CC_MQTTSN_CLIENT_PATCH_VERSION) |
| Version of the library as single numeric value. | |
Typedefs | |
| typedef unsigned(* | CC_MqttsnCancelNextTickWaitCb) (void *data) |
| Callback used to request termination of existing time measurement. | |
| typedef struct CC_MqttsnClient * | CC_MqttsnClientHandle |
| Handler used to access client specific data structures. | |
| typedef void(* | CC_MqttsnConnectCompleteCb) (void *data, CC_MqttsnAsyncOpStatus status, const CC_MqttsnConnectInfo *info) |
| Callback used to report completion of the connect operation. | |
| typedef struct CC_MqttsnConnect * | CC_MqttsnConnectHandle |
| Handle for "connect" operation. | |
| typedef void(* | CC_MqttsnDisconnectCompleteCb) (void *data, CC_MqttsnAsyncOpStatus status) |
| Callback used to report completion of the disconnect operation. | |
| typedef struct CC_MqttsnDisconnect * | CC_MqttsnDisconnectHandle |
| Handle for "disconnect" operation. | |
| typedef void(* | CC_MqttsnErrorLogCb) (void *data, const char *msg) |
| Callback used to report discovered errors. | |
| typedef void(* | CC_MqttsnGwDisconnectedReportCb) (void *data, CC_MqttsnGatewayDisconnectReason reason) |
| Callback used to report unsolicited disconnection of the gateway. | |
| typedef unsigned(* | CC_MqttsnGwinfoDelayRequestCb) (void *data) |
| Callback used to request delay (in ms) to wait before responding with GWINFO message on behalf of a gateway. | |
| typedef void(* | CC_MqttsnGwStatusReportCb) (void *data, CC_MqttsnGwStatus status, const CC_MqttsnGatewayInfo *info) |
| Callback used to report gateway status. | |
| typedef void(* | CC_MqttsnMessageReportCb) (void *data, const CC_MqttsnMessageInfo *msgInfo) |
| Callback used to report incoming messages. | |
| typedef void(* | CC_MqttsnNextTickProgramCb) (void *data, unsigned duration) |
| Callback used to request time measurement. | |
| typedef void(* | CC_MqttsnPublishCompleteCb) (void *data, CC_MqttsnPublishHandle handle, CC_MqttsnAsyncOpStatus status, const CC_MqttsnPublishInfo *info) |
| Callback used to report completion of the publish operation. | |
| typedef struct CC_MqttsnPublish * | CC_MqttsnPublishHandle |
| Handle for "publish" operation. | |
| typedef void(* | CC_MqttsnSearchCompleteCb) (void *data, CC_MqttsnAsyncOpStatus status, const CC_MqttsnGatewayInfo *info) |
| Callback used to report completion of the asynchronous operation. | |
| typedef struct CC_MqttsnSearch * | CC_MqttsnSearchHandle |
| Handle for "search" operation. | |
| typedef void(* | CC_MqttsnSendOutputDataCb) (void *data, const unsigned char *buf, unsigned bufLen, unsigned broadcastRadius) |
| Callback used to request to send data to the gateway. | |
| typedef void(* | CC_MqttsnSleepCompleteCb) (void *data, CC_MqttsnAsyncOpStatus status) |
| Callback used to report completion of the sleep operation. | |
| typedef struct CC_MqttsnSleep * | CC_MqttsnSleepHandle |
| Handle for "sleep" operation. | |
| typedef void(* | CC_MqttsnSubscribeCompleteCb) (void *data, CC_MqttsnSubscribeHandle handle, CC_MqttsnAsyncOpStatus status, const CC_MqttsnSubscribeInfo *info) |
| Callback used to report completion of the subscribe operation. | |
| typedef struct CC_MqttsnSubscribe * | CC_MqttsnSubscribeHandle |
| Handle for "subscribe" operation. | |
| typedef unsigned short | CC_MqttsnTopicId |
| Type used to hold Topic ID value. | |
| typedef void(* | CC_MqttsnUnsubscribeCompleteCb) (void *data, CC_MqttsnUnsubscribeHandle handle, CC_MqttsnAsyncOpStatus status) |
| Callback used to report completion of the unsubscribe operation. | |
| typedef struct CC_MqttsnUnsubscribe * | CC_MqttsnUnsubscribeHandle |
| Handle for "unsubscribe" operation. | |
| typedef void(* | CC_MqttsnWillCompleteCb) (void *data, CC_MqttsnAsyncOpStatus status, const CC_MqttsnWillInfo *info) |
| Callback used to report completion of the publish operation. | |
| typedef struct CC_MqttsnWill * | CC_MqttsnWillHandle |
| Handle for "will" operation. | |
Common definition for MQTT-SN clients.