nRF Connect SDK API 2.8.99
|
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.
[in] | obj | Object containing the key and value. |
[in] | key | Key. |
[out] | val | Boolean value 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 boolean. |
0 | Success; boolean found. |