samples: net: lwm2m_client: Updated RD client event handler

Added missed LWM2M_RD_CLIENT_EVENT_ENGINE_SUSPENDED event handler

Signed-off-by: Juha Heiskanen <juha.heiskanen@nordicsemi.no>
This commit is contained in:
Juha Heiskanen 2022-08-03 14:26:43 +03:00 committed by Carles Cufí
parent ca20462bcc
commit 43c8bfb3e5

View file

@ -466,6 +466,10 @@ static void rd_client_event(struct lwm2m_ctx *client,
LOG_DBG("Queue mode RX window closed");
break;
case LWM2M_RD_CLIENT_EVENT_ENGINE_SUSPENDED:
LOG_DBG("LwM2M engine suspended");
break;
case LWM2M_RD_CLIENT_EVENT_NETWORK_ERROR:
LOG_ERR("LwM2M engine reported a network error.");
lwm2m_rd_client_stop(client, rd_client_event, true);