nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ LWM2M_CARRIER_EVENT_FOTA_START

#define LWM2M_CARRIER_EVENT_FOTA_START   8

#include <lib/bin/lwm2m_carrier/include/lwm2m_carrier.h>

This event indicates that the firmware update has started.

The application must immediately terminate any open TLS and DTLS sessions. The download might happen on a secure socket, which is a limited modem resource.

lwm2m_carrier_event_t::data contains lwm2m_carrier_event_fota_start_t.

This event is triggered:

  • When the server pushes a firmware package to the OMA LwM2M Firmware object Package resource (/5/0/0). In this case, lwm2m_carrier_event_fota_start_t is empty.
  • When the server writes a URI to the OMA LwM2M Firmware object Package URI resource (/5/0/1). In this case, lwm2m_carrier_event_fota_start_t contains the URI of the package that will be downloaded.