--- title: "How to Enable and Set Up the Edge Device MQTT Broker" slug: "how-to-enable-and-set-up-the-edge-device-mqtt-broker" updated: 2025-01-23T10:07:08Z published: 2025-01-23T10:07:08Z canonical: "support.tulip.co/how-to-enable-and-set-up-the-edge-device-mqtt-broker" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # Aktivieren und Einrichten des Edge Device MQTT Broker ## Zweck *Lernen, wie man einen externen MQTT-Broker auf Tulip Edge Devices einrichtet* Ab OS 50.1 verfügen Tulip Edge Devices über einen externen MQTT-Broker, mit dem sich Client-Geräte verbinden können. ## Anweisungen 1. Loggen Sie sich in das Edge Device Portal ein. 2. Wählen Sie unten im Abschnitt "Netzwerkkonfiguration" die Option "MQTT Broker". ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566761938.png) 1. Klicken Sie auf "Aktivieren", geben Sie einen gewünschten Benutzernamen und ein Passwort ein und klicken Sie auf "Speichern". ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566762340.png) ## Verwendung des MQTT-Brokers mit Node-RED Um zu bestätigen, dass der Broker verfügbar ist, können wir einen Node-RED MQTT IN-Knoten verwenden. 1. Wenn Node-RED ausgeschaltet ist, schalten Sie es ein und melden Sie sich im Node-RED-Editor an. 2. Fügen Sie einen MQTT-Knoten zu Ihrem Fluss hinzu und bearbeiten Sie den Knoten. ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566761693.png) 1. Klicken Sie auf den Bleistift-Button, um die Broker-Konfiguration zu öffnen und setzen Sie "Server" auf `localhost`. ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566761625.png) 1. Klicken Sie auf die Registerkarte "Sicherheit" und geben Sie den für den Broker konfigurierten Benutzernamen und das Passwort ein. ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566761499.png) 1. Klicken Sie auf "Aktualisieren", um die Einstellungen zu speichern. 2. Klicken Sie auf "Bereitstellen", um zu prüfen, ob der Knoten eine Verbindung zum Broker herstellen kann. ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566762121.png) ### Beispiel Node-RED Flow Das folgende Beispiel kann als JSON-Datei gespeichert und in Node-RED importiert werden, um eine "world"-Nachricht an das "hello"-Thema zu senden. ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566761230.png) ``` { "id":"c8829f45.d66fd", "type": "tab", "label": "Flow 1", "deaktiviert":false, "info":"" }, { "id":"983032d6.f2f378", "type": "debug", "z":"c8829f45.d66fd", "name":"", "aktiv":wahr, "tosidebar":true, "Konsole":false, "tostatus":false, "complete": "Thema", "targetType": "msg", "statusVal":"", "statusType": "auto", "x":800, "y":180, "wires":[ ``` ] ``` }, { "id":"39d4c518.6948ba", "type": "inject", "z":"c8829f45.d66fd", "name":"", "props":[ { "p": "payload" }, { "p": "Thema", "vt": "str" } ], "repeat":"", "crontab":"", "once":false, "onceDelay":0.1, "topic": "hallo", "payload": "world", "payloadType": "str", "x":480, "y":120, "wires":[ [ "33035adc.d4eae6" ] ] }, { "id":"f7839332.ea3a98", "type": "mqtt in", "z":"c8829f45.d66fd", "name": "MQTT Receive All", "topic": "##", "qos": "2", "datatype": "auto", "broker":"6f327e4f.0a172", "nl":false, "rap":true, "rh":0, "x":450, "y":200, "wires":[ [ "983032d6.f2f378", "97df7c35.a8d228" ] ] }, { "id":"33035adc.d4eae6", "type": "mqtt out", "z":"c8829f45.d66fd", "name": "MQTT Send Hello", "topic":"", "qos":"", "retain":"", "respTopic":"", "contentType":"", "userProps":"", "correl":"", "expiry":"", "broker":"6f327e4f.0a172", "x":830, "y":120, "wires":[ ``` ] ``` }, { "id":"97df7c35.a8d228", "type": "debug", "z":"c8829f45.d66fd", "name":"", "aktiv":wahr, "tosidebar":true, "Konsole":false, "tostatus":false, "complete": "payload", "targetType": "msg", "statusVal":"", "statusType": "auto", "x":810, "y":240, "wires":[ ``` ] ``` }, { "id":"6f327e4f.0a172", "type": "mqtt-broker", "name":"", "broker": "localhost", "port": "1883", "clientid":"", "usetls":false, "protocolVersion": "5", "keepalive": "60", "cleansession":true, "birthTopic":"", "birthQos": "0", "birthPayload":"", "birthMsg":{ ``` }, "closeTopic":"", "closeQos": "0", "closePayload":"", "closeMsg":{ }, "willTopic":"", "willQos": "0", "willPayload":"", "willMsg":{ }, "sessionExpiry":"" ``` } ]``` --- Haben Sie gefunden, wonach Sie gesucht haben? Sie können auch auf [community.tulip.co](https://community.tulip.co/?utm_source=intercom&utm_medium=article-link&utm_campaign=all) Ihre Frage stellen oder sehen, ob andere mit einer ähnlichen Frage konfrontiert wurden! ```