358dcc1bde
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.ipso | ||
buf_util.h | ||
ipso_accelerometer.c | ||
ipso_buzzer.c | ||
ipso_light_control.c | ||
ipso_onoff_switch.c | ||
ipso_push_button.c | ||
ipso_temp_sensor.c | ||
ipso_timer.c | ||
lwm2m_engine.c | ||
lwm2m_engine.h | ||
lwm2m_obj_connmon.c | ||
lwm2m_obj_device.c | ||
lwm2m_obj_firmware.c | ||
lwm2m_obj_firmware_pull.c | ||
lwm2m_obj_location.c | ||
lwm2m_obj_security.c | ||
lwm2m_obj_server.c | ||
lwm2m_object.h | ||
lwm2m_rd_client.c | ||
lwm2m_rd_client.h | ||
lwm2m_rw_json.c | ||
lwm2m_rw_json.h | ||
lwm2m_rw_oma_tlv.c | ||
lwm2m_rw_oma_tlv.h | ||
lwm2m_rw_plain_text.c | ||
lwm2m_rw_plain_text.h | ||
lwm2m_util.c | ||
lwm2m_util.h |