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

◆ nrf_cloud_obj_msg_check()

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.

Parameters
[in]objObject to check.
[in]app_idDesired app ID. If NULL, app ID is not checked.
[in]msg_typeDesired message type. If NULL, message type is not checked.
Return values
-EINVALInvalid parameter.
-ENOENTObject is not initialized.
-ENOTSUPAction not supported for the object's type.
-ENOMSGObject does not contain the specified values.
0Success; object contains the specified values.