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

◆ nrf_cloud_obj_bool_get()

int nrf_cloud_obj_bool_get ( const struct nrf_cloud_obj *const  obj,
const char *const  key,
bool *  val 
)

#include <include/net/nrf_cloud_codec.h>

Get the boolean value associated with the provided key.

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