zephyr/subsys/net/lib/lwm2m
Robert Lubos 358dcc1bde 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: Robert Lubos <robert.lubos@nordicsemi.no>
2020-04-30 08:57:18 +03:00
..
CMakeLists.txt
Kconfig
Kconfig.ipso
buf_util.h
ipso_accelerometer.c
ipso_buzzer.c net: lwm2m: Convert to new timeout API 2020-04-28 09:50:45 +03:00
ipso_light_control.c
ipso_onoff_switch.c
ipso_push_button.c
ipso_temp_sensor.c
ipso_timer.c net: lwm2m: Convert to new timeout API 2020-04-28 09:50:45 +03:00
lwm2m_engine.c net: lwm2m: Handle socket errors 2020-04-30 08:57:18 +03:00
lwm2m_engine.h
lwm2m_obj_connmon.c net: lwm2m: Fix Cell ID resource initialization 2020-04-18 16:27:56 +03:00
lwm2m_obj_device.c net: lwm2m: Convert to new timeout API 2020-04-28 09:50:45 +03:00
lwm2m_obj_firmware.c
lwm2m_obj_firmware_pull.c net: lwm2m: Publicize firmware block context 2020-04-09 16:48:45 +02:00
lwm2m_obj_location.c
lwm2m_obj_security.c
lwm2m_obj_server.c
lwm2m_object.h
lwm2m_rd_client.c net: lwm2m: Handle socket errors 2020-04-30 08:57:18 +03:00
lwm2m_rd_client.h net: lwm2m: Handle socket errors 2020-04-30 08:57:18 +03:00
lwm2m_rw_json.c net: lwm2m: json: fix potential buffer overflow 2020-04-06 22:09:12 -04:00
lwm2m_rw_json.h
lwm2m_rw_oma_tlv.c net: lwm2m: support for reading OPAQUE resources with OMA TLV 2020-04-23 10:16:52 +03:00
lwm2m_rw_oma_tlv.h
lwm2m_rw_plain_text.c
lwm2m_rw_plain_text.h
lwm2m_util.c
lwm2m_util.h