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

◆ nrf_cloud_obj_num_get()

int nrf_cloud_obj_num_get ( const struct nrf_cloud_obj *const  obj,
const char *const  key,
double *  num 
)

#include <include/net/nrf_cloud_codec.h>

Get the number value associated with the provided key.

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