![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| [in] | obj | Object containing the key and value. |
| [in] | key | Key. |
| [out] | str | String 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 string. |
| 0 | Success; string found. |