Mistake on this page? Email us
lwm2m_registry_handler.h File Reference

Client Lite internal API for handling LwM2M Object registry requests. More...

Go to the source code of this file.

Functions

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...
 

Detailed Description

Client Lite internal API for handling LwM2M Object registry requests.

Function Documentation

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
endpointPointer to related endpoint.
received_coap_headerPointer to CoAP data from the CoAP library.
addressPointer 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
endpointPointer to related endpoint.
received_coap_headerPointer 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
endpointPointer 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
pathPointer to resource path.
received_coap_headerPointer to CoAP data from the CoAP library.
typeEvent 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
pathPointer to resource path.
endpointPointer to related endpoint.
tokenToken of the request.
token_lengthLength of the token.
msg_codeMessage code to use in the response.
notify_resultProvide result of sending the response as callback.