> For the complete documentation index, see [llms.txt](https://docs.eseye.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eseye.com/smartconnect/data-exchange/sending-data-from-the-cloud-to-your-thing.md).

# Sending data from the cloud to your thing

### Before you begin

Ensure your thing can send information to the cloud.

For more information, see [Sending and receiving data](/smartconnect/data-exchange/sending-and-receiving-data.md).

The example below uses AWS. The current AWS interface may differ slightly from the one we used in the example.

To test that the cloud can publish information to your thing:

1. Create two subscribe topics in the module.
   1. Using a terminal emulator, enter:

      ```
      at+emqsubopen=0,"SubscribeFromCloud0"
      at+emqsubopen=1,"SubscribeFromCloud1"
      ```

      ![](https://2591806296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTZG4LrCHVlGSXoDpMgo3%2Fuploads%2FtYjcVHTNTd7I8KqbWGRl%2Femqsubopen.png?alt=media)
   2. Check that the first two index numbers are assigned a topic each. Enter:

      ```
      at+emqsubopen?
      ```

      A list of index numbers and their assigned topics appears.

      ![](https://2591806296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTZG4LrCHVlGSXoDpMgo3%2Fuploads%2F6FunAgag0zoOXTzQP0S3%2Femqsubopenbg96.png?alt=media)
2. Use the cloud to publish a message to each topic.
   1. Using the AWS IoT MQTT test client, select the Publish to a topic tab.

      ![](https://2591806296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTZG4LrCHVlGSXoDpMgo3%2Fuploads%2FrXkiHasDAK4SQ4r6l2Ss%2FAWS_Publish1.png?alt=media)
   2. In the **Topic name** box, enter:

      ```
      SubscribeFromCloud0/<_cloudThingName_>
      ```
   3. In the coding window, replace `Hello from AWS IoT console` with:

      ```
      Turn heating on
      ```
   4. Select Publish.

      ![](https://2591806296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTZG4LrCHVlGSXoDpMgo3%2Fuploads%2Frz9RKEJFYsUoWL0xI9yb%2FAWS_Publish2.png?alt=media)
   5. In the **Publish** box, enter:

      ```
      SubscribeFromCloud1/_cloudThingName_
      ```
   6. In the coding window, replace `Turn heating on` with:

      ```
      Heat for 1 hour
      ```
   7. Select Publish.

      View the AWS messages in the terminal emulator in this format:

      ```
      +EMQ: <_indexnumber_>,<_messagelength_>

      {
        "message": "<_messagetext_>"
      }
      ```

      ![](https://2591806296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTZG4LrCHVlGSXoDpMgo3%2Fuploads%2FA53leLOQ7JJ2Cb0rArTP%2FMessagesReceived.png?alt=media)

If you can see the messages in the terminal emulator, then the cloud can successfully publish data to your thing through the module.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.eseye.com/smartconnect/data-exchange/sending-data-from-the-cloud-to-your-thing.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
