--- 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:14Z published: 2025-01-23T10:07:14Z 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. # Cómo activar y configurar el broker MQTT del dispositivo Edge ## Propósito *Aprenda a configurar un broker MQTT externo en Tulip Edge Devices* A partir de OS 50.1, Tulip Edge Devices tienen un broker MQTT externo al que los dispositivos cliente pueden conectarse. ## Instrucciones 1. Inicia sesión en el Portal de Dispositivos Edge. 2. En la parte inferior de la sección "Configuración de red", seleccione la opción "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. Haga clic en "Activar", introduzca el nombre de usuario y la contraseña deseados y pulse "Guardar". ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566762340.png) ## Usando el Broker MQTT con Node-RED Para confirmar que el broker está disponible, podemos utilizar un nodo Node-RED MQTT IN. 1. Si Node-RED está desactivado, actívalo e inicia sesión en el editor de Node-RED. 2. Añade un nodo MQTT a tu flujo y edita el nodo. ![](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. Haz clic en el botón del lápiz para abrir la configuración del broker y establece "Servidor" a `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. Haga clic en la pestaña "Seguridad" e introduzca el nombre de usuario y la contraseña configurados para el broker. ![](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. Haz clic en "Actualizar" para guardar la configuración. 2. Haz clic en "Desplegar" para comprobar si el nodo puede conectarse al broker. ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566762121.png) ### Ejemplo de flujo Nodo-RED El siguiente ejemplo puede guardarse como un archivo JSON e importarse a Node-RED para enviar un mensaje "world" al tema "hello". ![](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": "Flujo 1", "disabled":false "info":"" }, { "id":"983032d6.f2f378", "type": "debug", "z":"c8829f45.d66fd", "name": "nombre", "active":true "tosidebar":true, "console":false "tostatus":false, "complete": "topic", "targetType": "msg", "statusVal":"", "statusType": "auto", "x":800, "y":180, "cables":[ ``` ] ``` }, { "id":"39d4c518.6948ba", "type": "inject", "z":"c8829f45.d66fd", "name": "nombre", "props":[ { "p": "payload" }, { "p": "tema "vt": "str" } ], "repeat":"", "crontab":"", "once":false "onceDelay":0.1, "topic": "hola", "payload": "mundo", "payloadType": "str", "x":480, "y":120, "cables":[ [ "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, "cables":[ [ "983032d6.f2f378", "97df7c35.a8d228" ] ] }, { "id":"33035adc.d4eae6", "type": "mqtt out", "z":"c8829f45.d66fd", "name": "MQTT Enviar Hola", "topic":"", "qos":"", "retain":"", "respTopic":"", "contentType":"", "userProps":"", "correl":"", "expiry":"", "broker":"6f327e4f.0a172", "x":830, "y":120, "cables":[ ``` ] ``` }, { "id":"97df7c35.a8d228", "type": "debug", "z":"c8829f45.d66fd", "name": "nombre", "active":true "tosidebar":true, "console":false "tostatus":false, "complete": "payload", "targetType": "msg", "statusVal":"", "statusType": "auto", "x":810, "y":240, "cables":[ ``` ] ``` }, { "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":"" ``` } ]``` --- ¿Ha encontrado lo que buscaba? También puedes dirigirte a [community.tulip.co](https://community.tulip.co/?utm_source=intercom&utm_medium=article-link&utm_campaign=all) para publicar tu pregunta o ver si otras personas se han enfrentado a una pregunta similar. ```