nRF Connect SDK API 0.1.0
|
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.
[in] | obj | Object containing the key and object. |
[in] | key | Key. |
[out] | obj_out | Object associated with the provided key. |
-EINVAL | Invalid parameter. |
-ENODEV | Object does not contain the provided key. |
-ENOENT | Object is not initialized. |
-ENOTSUP | Action not supported for the object's type. |
-ENOMSG | Value associated with the key is not an object. |
0 | Success; string found. |