The module publishes the following output messages:
- CLOUD_DISCONNECTED: Indicates that the cloud connection is not established, or that it has been lost.
- CLOUD_CONNECTED: Indicates that the module is connected to nRF Cloud and ready to send data.
- CLOUD_SHADOW_RESPONSE_DESIRED and CLOUD_SHADOW_RESPONSE_DELTA: Return CBOR-encoded shadow data from the desired or the delta section.
- CLOUD_SHADOW_RESPONSE_EMPTY_DESIRED and CLOUD_SHADOW_RESPONSE_EMPTY_DELTA: Indicate that the requested shadow section has no data.
- CLOUD_PROVISIONED: Indicates that provisioning completed and that the device is ready to connect.
The message structure used by the Cloud module is defined in cloud.h:
struct cloud_msg {
enum cloud_msg_type type;
union {
struct cloud_payload payload;
struct cloud_shadow_response response;
};
};