> For the complete documentation index, see [llms.txt](https://docs.buildings.ability.abb/collection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildings.ability.abb/collection/german/verpflichtende-basis/platform-core/connect-hub/connectivity-as-a-service/connect-devices-via-mqtt/configure-a-subscription.md).

# Ein Abonnement konfigurieren

{% hint style="success" %}
**Voraussetzung** Sie haben ein neues Abonnement erstellt, wie unter [↗ Broker-Details -> Neues Abonnement erstellen](https://docs.buildings.ability.abb/collection/german/verpflichtende-basis/platform-core/connect-hub/connectivity-as-a-service/connect-devices-via-mqtt/configure-client.md#configure-broker).
{% endhint %}

## Übersicht

<figure><img src="https://2215908449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2F7cGzcf4V2HliK8CkeRjK%2FGroup%20567.png?alt=media&amp;token=b81a80c8-7a9b-4ece-8112-eefe8cbc66db" alt=""><figcaption><p>Abb. 1 – Neues Abonnement erstellen</p></figcaption></figure>

<table data-full-width="true"><thead><tr><th width="74.73332722981769">Symbol</th><th width="218">Beschreibung</th><th>Details</th></tr></thead><tbody><tr><td><strong>[A]</strong></td><td>Themenvorschau</td><td>In diesem Abschnitt sehen Sie eine Vorschau der eingehenden Daten</td></tr><tr><td><strong>[A1]</strong></td><td>Eingabe für die Themenvorschau</td><td>Geben Sie hier ein MQTT-Thema ein. Die zugehörigen Daten werden in der Vorschau angezeigt.<br><br>Wichtig: Geben Sie in dieses Feld <strong>NICHT</strong> das Thema ein, für das Sie ein Abonnement erstellen möchten – das erfolgt unter <strong>[C]</strong></td></tr><tr><td><strong>[B]</strong></td><td>Name</td><td>Geben Sie dem Abonnement einen Namen. Unter diesem Namen wird das Abonnement in der Abonnementliste (in den Broker-Details) angezeigt</td></tr><tr><td><strong>[C]</strong></td><td>Thema</td><td>Geben Sie hier das MQTT-Thema ein, für das Sie ein Abonnement erstellen möchten.</td></tr><tr><td><strong>[D]</strong></td><td>QoS (Quality of Service)</td><td>Wählen Sie einen Wert aus. QoS gibt die Qualität der Nachrichtenübermittlung zwischen dem MQTT-Broker und den verbundenen Clients an</td></tr><tr><td><strong>[E]</strong></td><td>Ein oder mehrere Formate</td><td>Wählen Sie aus, ob auf die eingehenden Daten ein einzelnes oder mehrere Formate angewendet werden sollen. <a href="#one-or-more-formats">-> Ein oder mehrere Formate</a></td></tr><tr><td><strong>[F]</strong></td><td>Format erstellen</td><td>Wenn Sie ein neues Format definieren möchten, klicken Sie hier. Das Fenster <a href="https://docs.buildings.ability.abb/collection/german/verpflichtende-basis/platform-core/connect-hub/data-processing-function-formats/configure-a-format.md">↗ Format konfigurieren</a> wird geöffnet</td></tr><tr><td><strong>[G]</strong></td><td>Vorhandenes Format auswählen</td><td>Alternativ zu <strong>[F]</strong>können Sie auch ein vorhandenes Format auswählen</td></tr><tr><td><strong>[H]</strong></td><td>Speichern</td><td>Klicken Sie hier, um das Abonnement zu speichern</td></tr></tbody></table>

## Ein oder mehrere Formate

<figure><img src="https://2215908449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2F3Mtaa7af1ga0mwZz968x%2Fimage%2021.png?alt=media&amp;token=42692e96-c537-4714-80dc-eace1a92bdf8" alt=""><figcaption></figcaption></figure>

Wählen Sie aus, ob auf die eingehenden Daten ein einzelnes oder mehrere Formate angewendet werden sollen.

◈ Wenn Sie *Einzeln*auswählen, wird für alle eingehenden Daten dasselbe Format verwendet.

◈ Wenn Sie *Mehrere*auswählen, können Sie die Verarbeitung der Daten abhängig vom *Thema*unterschiedlich gestalten. Das bedeutet: Innerhalb eines Abonnements können verschiedene Themen mit unterschiedlichen Formaten verarbeitet werden. Dazu verwenden Sie **Muster** und legen damit fest, welche Daten welchem Format zugeordnet werden.

**Beispiel:**

Sie abonnieren das Thema `levels/+`. Es gibt zwei tatsächliche Themen:

* `levels/level1` → Diese Daten sollen mit **Decoder A**
* `levels/level2` → Diese Daten sollen mit **Decoder B**

Geben Sie dann im Modus „Mehrere“ zwei Paare ein:

| Muster          | Format    |
| --------------- | --------- |
| `levels/level1` | Decoder A |
| `levels/level2` | Decoder B |

▷ Auf diese Weise werden die Daten je nach Topic automatisch im richtigen Format decodiert.


---

# 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.buildings.ability.abb/collection/german/verpflichtende-basis/platform-core/connect-hub/connectivity-as-a-service/connect-devices-via-mqtt/configure-a-subscription.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.
