nRF Connect SDK API 0.1.0
|
int nrf_cloud_obj_init | ( | struct nrf_cloud_obj *const | obj | ) |
#include <include/net/nrf_cloud_codec.h>
Initialize an empty object.
If successful, memory is allocated for the provided object. The nrf_cloud_obj_free function should be called when finished with the object.
[out] | obj | Object to initialize. |
-EINVAL | Invalid parameter. |
-ENOTEMPTY | Object already initialized. |
-ENOMEM | Out of memory. |
-ENOTSUP | Action not supported for the object's type. |
0 | Success; object initialized. |