Skip to content
Commit 358dcc1b authored by Robert Lubos's avatar Robert Lubos Committed by Jukka Rissanen
Browse files

net: lwm2m: Handle socket errors



So far socket errors reported by poll/recvfrom were ignored, which could
lead to an unexpected behavior when socket was left in an undefined
state.

Fix this, by requesting a re-registration in the LWM2M state machine,
which will close the faulty socket and open a new one. Note, that simply
closing and re-opening a socket in the lwm2m engine would not work,
since this would silently invalidate any open observations on the
lwm2m server side (due to port number change). Triggering a fresh
registration will notify the server to update its observations.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 50a91847
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment