> 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 wie in [↗ Broker-Details -> Neues Abonnement erstellen](/collection/german/verpflichtende-basis/platform-core/connect-hub/connectivity-as-a-service/connect-devices-via-mqtt/configure-client.md#configure-broker).
{% endhint %}

## Überblick

<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-Topic ein. Dessen Daten werden in der Vorschau angezeigt.<br><br>Wichtig: In diesem Feld geben Sie nicht <strong>NICHT</strong> geben Sie das Topic ein, für das Sie ein Abonnement erstellen möchten – dies geschieht in <strong>[C]</strong></td></tr><tr><td><strong>[B]</strong></td><td>Name</td><td>Geben Sie dem Abonnement einen Namen. Das Abonnement wird in der Abonnementliste (in den Broker-Details) unter diesem Namen angezeigt</td></tr><tr><td><strong>[C]</strong></td><td>Das Topic</td><td>Geben Sie hier das MQTT-Topic 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. QoS gibt den Grad 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, ob auf die eingehenden Daten ein einzelnes Format 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="/collection/german/verpflichtende-basis/platform-core/connect-hub/data-processing-function-formats/configure-a-format.md">↗ Format konfigurieren</a> öffnet sich</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, 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, ob auf die eingehenden Daten ein einzelnes Format oder mehrere Formate angewendet werden sollen.

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

◈ Wenn Sie *Mehrfach*, können Sie die Verarbeitung der Daten unterscheiden – abhängig vom *Topic*. Das bedeutet: Innerhalb eines Abonnements können verschiedene Topics mit unterschiedlichen Formaten verarbeitet werden. Dafür verwenden Sie **Muster** , um festzulegen, welche Daten zu welchem Format gehören.

**Beispiel:**

Sie abonnieren das Topic `levels/+`. Es gibt zwei tatsächliche Topics:

* `levels/level1` → diese Daten sollten mit **Decoder A**
* `levels/level2` → diese Daten sollten mit **Decoder B**

Dann geben Sie im Mehrfachmodus zwei Paare ein:

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

▷ So werden die Daten je nach Topic automatisch mit dem 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 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.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=<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.
