Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: lwm2m: Check result when sending messages #84867

Conversation

mlasch
Copy link
Contributor

@mlasch mlasch commented Jan 29, 2025

The lwm2m_send_message_async return value was not always checked. The function may return critical errors which must be handled. The function can return -ENOMEM, -EPERM or other error codes from functions called.

This should solve issues where messages were silently dropped.

`lwm2m_send_message_async` returns critical errors which are not handled in
many cases. The function can return -ENOMEM, -EPERM or other error codes
from functions called.

Signed-off-by: Marc Lasch <[email protected]>
@kartben kartben merged commit dd16bc5 into zephyrproject-rtos:main Jan 31, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants