Client Lite internal API for handling LwM2M Object registry requests.
More...
Go to the source code of this file.
|
void | handle_coap_request (endpoint_t *endpoint, sn_coap_hdr_s *received_coap_header, sn_nsdl_addr_s *address) |
| Handle Constrained Application Protocol (CoAP) request from the server. More...
|
|
bool | handle_coap_response (endpoint_t *endpoint, sn_coap_hdr_s *received_coap_header) |
| Handle Constrained Application Protocol (CoAP) response from the server. More...
|
|
void | send_final_response (const registry_path_t *path, endpoint_t *endpoint, const uint8_t *token, const uint8_t token_length, const sn_coap_msg_code_e msg_code, const bool notify_result) |
| Send a response to a execute request. More...
|
|
void | send_execute_response (const registry_path_t *path, endpoint_t *endpoint, const uint8_t *token, const uint8_t token_length, const sn_coap_msg_code_e msg_code) |
|
void | response_message_send (endpoint_t *endpoint) |
| Event queue calls this function when a time slot is available for sending. More...
|
|
bool | send_callback_data (const registry_path_t *path, const sn_coap_hdr_s *received_coap_header, const uint8_t type) |
| Queue a callback to be called. More...
|
|
Client Lite internal API for handling LwM2M Object registry requests.
void handle_coap_request |
( |
endpoint_t * |
endpoint, |
|
|
sn_coap_hdr_s * |
received_coap_header, |
|
|
sn_nsdl_addr_s * |
address |
|
) |
| |
Handle Constrained Application Protocol (CoAP) request from the server.
- Parameters
-
endpoint | Pointer to related endpoint. |
received_coap_header | Pointer to CoAP data from the CoAP library. |
address | Pointer to source address. |
bool handle_coap_response |
( |
endpoint_t * |
endpoint, |
|
|
sn_coap_hdr_s * |
received_coap_header |
|
) |
| |
Handle Constrained Application Protocol (CoAP) response from the server.
- Parameters
-
endpoint | Pointer to related endpoint. |
received_coap_header | Pointer to CoAP data from the CoAP library. |
void response_message_send |
( |
endpoint_t * |
endpoint | ) |
|
Event queue calls this function when a time slot is available for sending.
- Parameters
-
endpoint | Pointer to related endpoint. |
bool send_callback_data |
( |
const registry_path_t * |
path, |
|
|
const sn_coap_hdr_s * |
received_coap_header, |
|
|
const uint8_t |
type |
|
) |
| |
Queue a callback to be called.
- Parameters
-
path | Pointer to resource path. |
received_coap_header | Pointer to CoAP data from the CoAP library. |
type | Event type. |
void send_execute_response |
( |
const registry_path_t * |
path, |
|
|
endpoint_t * |
endpoint, |
|
|
const uint8_t * |
token, |
|
|
const uint8_t |
token_length, |
|
|
const sn_coap_msg_code_e |
msg_code |
|
) |
| |
TODO: Remove this API. Deprecated.
void send_final_response |
( |
const registry_path_t * |
path, |
|
|
endpoint_t * |
endpoint, |
|
|
const uint8_t * |
token, |
|
|
const uint8_t |
token_length, |
|
|
const sn_coap_msg_code_e |
msg_code, |
|
|
const bool |
notify_result |
|
) |
| |
Send a response to a execute request.
- Parameters
-
path | Pointer to resource path. |
endpoint | Pointer to related endpoint. |
token | Token of the request. |
token_length | Length of the token. |
msg_code | Message code to use in the response. |
notify_result | Provide result of sending the response as callback. |