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

◆ lwm2m_carrier_data_send()

int lwm2m_carrier_data_send ( const uint16_t * path,
uint8_t path_len )

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

Schedule an OMA LwM2M Send operation for a resource. This will push an update of a value to the server without the server needing to observe or read the resource.

This operation is only supported for resources of the OMA LwM2M Opaque type.

Parameters
[in]pathThe path of the resource or resource instance to be sent. The path contains the object id, object instance id, resource id and resource instance id in order.
[in]path_lenThe length of the path. Must be 3 or 4.
Return values
0If the data has been scheduled to be sent successfully.
-EPERMIf the operation was attempted on a resource that is not readable.
-ENOENTIf the path points to something that is not yet initialized.
-EINVALIf the operation was attempted on an unsupported resource.
-EINPROGRESSIf the operation was attempted while a send request was already in progress.
-ECANCELEDIf the Mute Send resource is enabled for the LwM2M server.