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

◆ nrf_cloud_obj_str_get()

int nrf_cloud_obj_str_get ( const struct nrf_cloud_obj *const  obj,
const char *const  key,
char **  str 
)

#include <include/net/nrf_cloud_codec.h>

Get the string value associated with the provided key.

Parameters
[in]objObject containing the key and value.
[in]keyKey.
[out]strString 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 a string.
0Success; string found.