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

◆ nrf_cloud_obj_object_detach()

int nrf_cloud_obj_object_detach ( struct nrf_cloud_obj *const  obj,
const char *const  key,
struct nrf_cloud_obj *const  obj_out 
)

#include <include/net/nrf_cloud_codec.h>

Get and detach the object associated with the provided key.

If successful, the object data specified by the given key is removed from obj and moved into obj_out.

Parameters
[in]objObject containing the key and object.
[in]keyKey.
[out]obj_outObject associated with the provided key.
Return values
-EINVALInvalid parameter.
-ENODEVObject does not contain the provided key.
-ENOENTObject is not initialized.
-ENOTSUPAction not supported for the object's type.
-ENOMSGValue associated with the key is not an object.
0Success; string found.