#include <include/net/nrf_cloud.h>
Request shadow data over MQTT using a JSONata expression. For example, to request the reported device info section, the transform would be: "state.reported.device.deviceInfo". The application will receive response data in an NRF_CLOUD_EVT_RX_DATA_SHADOW event. The nrf_cloud_obj_shadow_data will be of the type NRF_CLOUD_OBJ_SHADOW_TYPE_TF.
- Parameters
-
- Return values
-
0 | Request was sent successfully. |
-ENOTSUP | Error; CONFIG_NRF_CLOUD_MQTT_SHADOW_TRANSFORMS is not enabled. |
-EINVAL | Error; invalid parameter. |
- Returns
- A negative value indicates an error.