![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| [in] | obj | Object containing the key and value. |
| [in] | key | Key. |
| [out] | num | Number associated with the provided key. |
| -EINVAL | Invalid parameter. |
| -ENODEV | Object does not contain the provided key. |
| -ENOENT | Object is not initialized. |
| -ENOTSUP | Action not supported for the object's type. |
| -ENOMSG | Value associated with the key is not a number. |
| 0 | Success; number found. |