--- 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:27Z published: 2025-01-23T10:07:27Z 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. # Come abilitare e configurare il broker MQTT del dispositivo Edge ## Scopo *Imparare a configurare un broker MQTT esterno sui dispositivi Tulip Edge* A partire dal sistema operativo 50.1, i dispositivi Tulip Edge dispongono di un broker MQTT esterno a cui i dispositivi client possono connettersi. ## Istruzioni 1. Accedere al portale dei dispositivi Edge. 2. In fondo alla sezione "Configurazione di rete", selezionare l'opzione "Broker MQTT". ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566761938.png){Fare clic su "Abilita", immettere il nome del broker MQTT e fare clic su "Abilita".} 1. Fare clic su "Abilita", inserire il nome utente e la password desiderati e premere "Salva". ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Enable%20and%20Set%20Up%20the%20Edge%20Device%20MQTT%20Broker_566762340.png) ## Utilizzo del broker MQTT con Node-RED Per confermare che il broker è disponibile, possiamo usare un nodo Node-RED MQTT IN. 1. Se Node-RED è spento, attivarlo e accedere all'editor di Node-RED. 2. Aggiungere un nodo MQTT al flusso e modificare il 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. Fare clic sul pulsante con la matita per aprire la configurazione del broker e impostare "Server" su `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. Fare clic sulla scheda "Sicurezza" e inserire il nome utente e la password configurati per il 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. Fare clic su "Aggiorna" per salvare le impostazioni. 2. Fare clic su "Deploy" per verificare se il nodo può connettersi 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) ### Esempio di flusso nodo-RED L'esempio seguente può essere salvato come file JSON e importato in Node-RED per inviare un messaggio "world" all'argomento "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": "Flusso 1", "disabled":false, "info":" }, { "id":"983032d6.f2f378", "type": "debug", "z":"c8829f45.d66fd", "name":"", "active":true, "tosidebar":true, "console":false, "tostatus":false, "complete": "topic", "targetType": "msg", "statusVal":"", "statusType": "auto", "x":800, "y":180, "fili":[ ``` ] ``` }, { "id":"39d4c518.6948ba", "tipo": "iniettare", "z":"c8829f45.d66fd", "name":"", "props":[ { "p": "payload" }, { "p": "argomento", "vt": "str" } ], "repeat":"", "crontab":"", "once":false, "onceDelay":0.1, "topic": "hello", "payload": "world", "payloadType": "str", "x":480, "y":120, "fili":[ [ "33035adc.d4eae6" ] ] }, { "id":"f7839332.ea3a98", "tipo": "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, "fili":[ [ "983032d6.f2f378", "97df7c35.a8d228" ] ] }, { "id":"33035adc.d4eae6", "tipo": "mqtt out", "z":"c8829f45.d66fd", "name": "MQTT Send Hello", "topic":"", "qos":"", "retain":"", "respTopic":"", "contentType":"", "userProps":"", "correl":"", "scadenza":"", "broker":"6f327e4f.0a172", "x":830, "y":120, "fili":[ ``` ] ``` }, { "id":"97df7c35.a8d228", "tipo": "debug", "z":"c8829f45.d66fd", "name":"", "active":true, "tosidebar":true, "console":false, "tostatus":false, "complete": "payload", "targetType": "msg", "statusVal:"", "statusType": "auto", "x":810, "y":240, "fili":[ ``` ] ``` }, { "id":"6f327e4f.0a172", "type": "mqtt-broker", "name":"", "broker": "localhost", "porta": "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":" ``` } ]``` --- Avete trovato quello che cercavate? Potete anche andare su [community.tulip.co](https://community.tulip.co/?utm_source=intercom&utm_medium=article-link&utm_campaign=all) per porre la vostra domanda o vedere se altri hanno affrontato una domanda simile! ```