-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I am using an MQTT node with credentials and I vaguely remember that the configuration node credentials are only sent on the first deploy, so before the node mcu plugin the procedure was to copy the flow into node red mcu before deploy so that these were downloaded with the flow to the mcu. I assume now that I have the plugin working that the config node credentials would be downloaded.
Summary
I have a simple flow of an inject node and an MQTT out node to a MQTT broker that is known to work. The flow works correctly if there are no credentials in the MQTT out or the broker but does not connect if the node red mcu flow has credentials. I have tried to input credentials and then build before deploy (savings config setup) and also to build after deploy but neither works
The mcu is a ESP32/nodemcu
Example Flows
This is the flow before deploy, you can see the credentials in the broker
[ { "id": "9c629d06eeea7a09", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [], "_mcu": { "mcu": true } }, { "id": "e42e258e6f3d5c8c", "type": "inject", "z": "9c629d06eeea7a09", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "20", "crontab": "", "once": false, "onceDelay": "5", "topic": "", "payload": "", "payloadType": "date", "_mcu": { "mcu": true }, "x": 170, "y": 80, "wires": [ [ "da80f24bceaa4e51", "2b5ec21c66d9da1b" ] ] }, { "id": "da80f24bceaa4e51", "type": "mqtt out", "z": "9c629d06eeea7a09", "name": "", "topic": "Testy76", "qos": "0", "retain": "false", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "9a98af129a0f5b68", "_mcu": { "mcu": true }, "x": 520, "y": 40, "wires": [] }, { "id": "2b5ec21c66d9da1b", "type": "debug", "z": "9c629d06eeea7a09", "name": "debug 1", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "_mcu": { "mcu": true }, "x": 500, "y": 160, "wires": [] }, { "id": "9a98af129a0f5b68", "type": "mqtt-broker", "name": "", "broker": "192.168.1.107", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "", "_mcu": { "mcu": false }, "credentials": { "user": "user", "password": "password" } } ]
And this is the flow after deploy, no credentials
[ { "id": "9c629d06eeea7a09", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [], "_mcu": { "mcu": true } }, { "id": "e42e258e6f3d5c8c", "type": "inject", "z": "9c629d06eeea7a09", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "20", "crontab": "", "once": false, "onceDelay": "5", "topic": "", "payload": "", "payloadType": "date", "_mcu": { "mcu": true }, "x": 170, "y": 80, "wires": [ [ "da80f24bceaa4e51", "2b5ec21c66d9da1b" ] ] }, { "id": "da80f24bceaa4e51", "type": "mqtt out", "z": "9c629d06eeea7a09", "name": "", "topic": "Testy76", "qos": "0", "retain": "false", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "9a98af129a0f5b68", "_mcu": { "mcu": true }, "x": 520, "y": 40, "wires": [] }, { "id": "2b5ec21c66d9da1b", "type": "debug", "z": "9c629d06eeea7a09", "name": "debug 1", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "_mcu": { "mcu": true }, "x": 500, "y": 160, "wires": [] }, { "id": "9a98af129a0f5b68", "type": "mqtt-broker", "name": "", "broker": "192.168.1.107", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "", "_mcu": { "mcu": false } } ]