nRF Connect SDK API 2.8.99
|
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.
[in] | path | The 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_len | The length of the path. Must be 3 or 4. |
0 | If the data has been scheduled to be sent successfully. |
-EPERM | If the operation was attempted on a resource that is not readable. |
-ENOENT | If the path points to something that is not yet initialized. |
-EINVAL | If the operation was attempted on an unsupported resource. |
-EINPROGRESS | If the operation was attempted while a send request was already in progress. |
-ECANCELED | If the Mute Send resource is enabled for the LwM2M server. |