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

◆ nrf_cloud_coap_shadow_delta_process()

int nrf_cloud_coap_shadow_delta_process ( const struct nrf_cloud_data * in_data,
struct nrf_cloud_obj *const delta_out )

#include <include/net/nrf_cloud_coap.h>

Process any elements of the shadow relevant to this library.

One such element is the control section, which specifies the log level and turns alerts on and off.

If application-specific delta data exists, it will be provided in delta_out.

Parameters
[in]in_dataA pointer to a structure with the length and a pointer to the delta received.
[out]delta_outA pointer to a structure that contains application-specific delta data.
Return values
-ENOMSGError decoding input data.
0Success, no application-specific delta data.
1Success, application-specific delta data exists. Caller is responsible for the memory in delta_out; free with nrf_cloud_obj_free.