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

◆ nrf_cloud_obj_init()

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.

Parameters
[out]objObject to initialize.
Return values
-EINVALInvalid parameter.
-ENOTEMPTYObject already initialized.
-ENOMEMOut of memory.
-ENOTSUPAction not supported for the object's type.
0Success; object initialized.