Skip to content

Commit

Permalink
lib: lwm2m_carrier: Clarify pdn return values
Browse files Browse the repository at this point in the history
Clarified and expanded the the lwm2m_os pdn return values.

Signed-off-by: Håvard Vermeer <[email protected]>
  • Loading branch information
nordic-hani committed Dec 16, 2024
1 parent d418771 commit 97827be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/bin/lwm2m_carrier/include/lwm2m_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ int lwm2m_os_pdn_ctx_destroy(uint8_t cid);
* will remain unchanged.
*
* @retval 0 If success.
* @retval -ERRNO errno code if error.
*/
int lwm2m_os_pdn_activate(uint8_t cid, int *esm, enum lwm2m_os_pdn_fam *family);

Expand All @@ -231,6 +232,7 @@ int lwm2m_os_pdn_activate(uint8_t cid, int *esm, enum lwm2m_os_pdn_fam *family);
* @param cid The PDP context ID.
*
* @retval 0 If success.
* @retval -ERRNO errno code if error.
*/
int lwm2m_os_pdn_deactivate(uint8_t cid);

Expand All @@ -241,14 +243,17 @@ int lwm2m_os_pdn_deactivate(uint8_t cid);
*
* @param cid The context ID of the PDN connection.
*
* @retval 0 If success.
* @return A non-negative PDN ID on success, or a negative errno otherwise.
*/
int lwm2m_os_pdn_id_get(uint8_t cid);

/**
* @brief Set a callback for events pertaining to the default PDP context (zero).
*
* @param cb The PDN event handler.
*
* @retval 0 If success
* @retval -ERRNO errno code if error.
*/
int lwm2m_os_pdn_default_callback_set(lwm2m_os_pdn_event_handler_t cb);

Expand Down

0 comments on commit 97827be

Please sign in to comment.