nRF Connect SDK API 2.8.99
|
int nrf_cloud_obj_msg_check | ( | const struct nrf_cloud_obj *const | obj, |
const char *const | app_id, | ||
const char *const | msg_type ) |
#include <include/net/nrf_cloud_codec.h>
Check if the object contains the specified app ID and message type.
[in] | obj | Object to check. |
[in] | app_id | Desired app ID. If NULL, app ID is not checked. |
[in] | msg_type | Desired message type. If NULL, message type is not checked. |
-EINVAL | Invalid parameter. |
-ENOENT | Object is not initialized. |
-ENOTSUP | Action not supported for the object's type. |
-ENOMSG | Object does not contain the specified values. |
0 | Success; object contains the specified values. |