> 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/modules/cinterion-r-els61-wireless-module/mqtt-at-commands/emqpubopen-create-a-publish-message-topic.md).

# EMQPUBOPEN – create a publish message topic

Create and view publish message topics, which will enable you to publish data to things in AWS IoT Console.

| Type      | Syntax                                                                                                                                                                                                                                                                                                                                                                                                                          | Response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Test**  | `AT+EMQPUBOPEN=?`                                                                                                                                                                                                                                                                                                                                                                                                               | <p><code>OK</code></p><p><code>+EMQPUBOPEN:(0-7),\<topic></code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Read**  | `AT+EMQPUBOPEN?`                                                                                                                                                                                                                                                                                                                                                                                                                | <p>List of publish topics.</p><p><code>OK</code></p><p><code>+EMQPUBOPEN topics:</code></p><p><code>0 \<publishtopic0>/\<AWSthingName></code></p><p><code>1 \<publishtopic1>/\<AWSthingName></code></p><p><code>2 null</code></p><p><code>3 null</code></p><p><code>4 null</code></p><p><code>5 null</code></p><p><code>6 null</code></p><p><code>7 null</code></p><p>where:</p><ul><li>0, 1, and so on are the index numbers</li><li><code>\<publishtopicn></code> is the unique name for each publish index</li><li><p><code>\<AWSthingName></code> is the unique name for the thing that you defined in AWS. For more information, see <a href="https://docs.eseye.com/Content/SIMOnly/SIMOnlyReadingFiles.htm">Available files and sizes</a>.</p><p><strong>Note:</strong> The AWSthingName has a maximum length of 128 characters. The sum of <code>\<publishtopicn></code> and <code>\<AWSthingName></code> must not exceed 255 characters. Escaped characters count as 1 character each.</p></li><li><code>null</code> is an empty publish topic</li></ul> |
| **Write** | <p><code>AT+EMQPUBOPEN=(0-7),\<topic></code></p><p>where:</p><ul><li><code>(0-7)</code> is a publish index number in the range from 0, up to and including 7.</li><li><code>\<topic></code> is the publish topic title with a maximum length of 255 characters (including /AWS thingName or /IMEI). Topic titles cannot contain special characters.</li><li>"<code>\<topic></code>" can exist within quotation marks.</li></ul> | <p><code>OK</code></p><p><code>+EMQPUBOPEN: (0-7),\<status></code></p><p>where</p><ul><li><code>(0-7)</code> is the publish index number you selected from the range</li><li><p><code>\<status></code> is:</p><ul><li><code>0</code> – successfully installed the publish topic</li><li><code>-2</code> – socket already in use</li></ul></li></ul><p>or</p><p><code>ERROR</code> – the command failed</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

#### Example

```
AT+EMQPUBOPEN=1,PublishToCloud1
OK

+EMQPUBOPEN: 1,0

AT+EMQPUBOPEN?
OK

+EMQPUBOPEN topics:
0 PublishToCloud0/AWSthingName
1 PublishToCloud1/AWSthingName
2 null
3 null
4 null
5 null
6 null
7 null
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eseye.com/modules/cinterion-r-els61-wireless-module/mqtt-at-commands/emqpubopen-create-a-publish-message-topic.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
