| 
    CommsChampion Ecosystem MQTT-SN Client
    
   MQTT-SN client library. 
   | 
 
Classes | |
| struct | CC_MqttsnSleepConfig | 
| Configuration the "sleep" operation.  More... | |
Typedefs | |
| 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_MqttsnSleepCompleteCb) (void *data, CC_MqttsnAsyncOpStatus status) | 
Callback used to report completion of the sleep operation.
| [in] | data | Pointer to user data object, passed as the last parameter to the request call. | 
| [in] | status | Status of the "sleep" operation. | 
| typedef struct CC_MqttsnSleep* CC_MqttsnSleepHandle | 
Handle for "sleep" operation.
Returned by cc_mqttsn_client_sleep_prepare() function.
| CC_MqttsnErrorCode cc_mqttsn_client_sleep | ( | CC_MqttsnClientHandle | client, | 
| const CC_MqttsnSleepConfig * | config, | ||
| CC_MqttsnSleepCompleteCb | cb, | ||
| void * | cbData | ||
| ) | 
Prepare and send "sleep" request in one go.
Abstracts away sequence of the following functions invocation:
| [in] | client | Handle returned by cc_mqttsn_client_alloc() function. | 
| [in] | config | Subscription configuration. | 
| [in] | cb | Callback to be invoked when "sleep" operation is complete. | 
| [in] | cbData | Pointer to any user data structure. It will passed as one of the parameters in callback invocation. May be NULL. | 
| CC_MqttsnErrorCode cc_mqttsn_client_sleep_cancel | ( | CC_MqttsnSleepHandle | handle | ) | 
Cancel the allocated "sleep" operation.
In case the cc_mqttsn_client_sleep_send() function was successfully called before, the operation is cancelled without callback invocation.
| [in] | handle | Handle returned by cc_mqttsn_client_sleep_prepare() function. | 
| CC_MqttsnErrorCode cc_mqttsn_client_sleep_config | ( | CC_MqttsnSleepHandle | handle, | 
| const CC_MqttsnSleepConfig * | config | ||
| ) | 
Perform configuration of the "sleep" operation.
| [in] | handle | Handle returned by cc_mqttsn_client_sleep_prepare() function. | 
| [in] | config | Configuration structure. Must NOT be NULL. Does not need to be preserved after invocation. | 
| unsigned cc_mqttsn_client_sleep_get_retry_count | ( | CC_MqttsnSleepHandle | handle | ) | 
Retrieve the configured retry count for the "sleep" operation.
| [in] | handle | Handle returned by cc_mqttsn_client_sleep_prepare() function. | 
| unsigned cc_mqttsn_client_sleep_get_retry_period | ( | CC_MqttsnSleepHandle | handle | ) | 
Retrieve the configured retry period for the "sleep" operation.
| [in] | handle | Handle returned by cc_mqttsn_client_sleep_prepare() function. | 
| void cc_mqttsn_client_sleep_init_config | ( | CC_MqttsnSleepConfig * | config | ) | 
Intialize the CC_MqttsnSleepConfig configuration structure.
| [out] | config | Configuration structure. Must not be NULL. | 
| CC_MqttsnSleepHandle cc_mqttsn_client_sleep_prepare | ( | CC_MqttsnClientHandle | client, | 
| CC_MqttsnErrorCode * | ec | ||
| ) | 
Prepare "sleep" operation.
| [in] | client | Handle returned by cc_mqttsn_client_alloc() function. | 
| [out] | ec | Error code reporting result of the operation. Can be NULL. | 
| CC_MqttsnErrorCode cc_mqttsn_client_sleep_send | ( | CC_MqttsnSleepHandle | handle, | 
| CC_MqttsnSleepCompleteCb | cb, | ||
| void * | cbData | ||
| ) | 
Send the "sleep" operation.
| [in] | handle | Handle returned by cc_mqttsn_client_sleep_prepare() function. | 
| [in] | cb | Callback to be invoked when "sleep" operation is complete. | 
| [in] | cbData | Pointer to any user data structure. It will passed as one of the parameters in callback invocation. May be NULL. | 
| CC_MqttsnErrorCode cc_mqttsn_client_sleep_set_retry_count | ( | CC_MqttsnSleepHandle | handle, | 
| unsigned | count | ||
| ) | 
Configure the retry count for the "sleep" operation.
| [in] | handle | Handle returned by cc_mqttsn_client_sleep_prepare() function. | 
| [in] | count | Number of retries. | 
| CC_MqttsnErrorCode cc_mqttsn_client_sleep_set_retry_period | ( | CC_MqttsnSleepHandle | handle, | 
| unsigned | ms | ||
| ) | 
Configure the retry period for the "sleep" operation.
| [in] | handle | Handle returned by cc_mqttsn_client_sleep_prepare() function. | 
| [in] | ms | Retry period in milliseconds. |