Output messages

Asset Tracker Template

tags
Asset Tracker Template
  • CLOUD_DISCONNECTED: Indicates that the cloud connection is not established (or has been lost).

  • CLOUD_CONNECTED: Indicates that the module is connected to nRF Cloud and ready to send data.

  • CLOUD_SHADOW_RESPONSE_DESIRED / CLOUD_SHADOW_RESPONSE_DELTA: Return CBOR-encoded shadow data from the desired or delta section.

  • CLOUD_SHADOW_RESPONSE_EMPTY_DESIRED / CLOUD_SHADOW_RESPONSE_EMPTY_DELTA: Indicate that the requested shadow section has no data.

  • CLOUD_PROVISIONED: Indicates that provisioning completed and 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;
    };
};