I have been having an issue getting the MQTT input block to connect to my emonPi (raspberry pi system by openenergymonitor). When I connect to the emonPi via SSH through putty, I am able to view all of the MQTT messages. This to me means that everything is working fine on that end, but I could be wrong. When I try to connect the pi to nodered using the mqtt input, I have not been able to connect. My first thought is is there password authentication required before accessing the info passed by MQTT? Thank you for your help.
If I understand you correctly, when you run the command from the command line (something like mosquitto_sub -t ...) it returns the data being sent (old data won't be there unless it was sent with retain).
Can you run, on the pi, the following command?:
netstat -nat | grep LISTEN | grep 1883
That should come back with the address the MQTT server is listening on. 0.0.0.0:1883 means it's listening on all addresses and port 1883 and I'd expect 127.0.0.1 to work properly.
If you mean the MQTT user/pwd setup in the MQTT config node then no, I don't think so, that would just fail to connect to MQTT, the error is saying you cannot deploy the flow itself. I am not sure how that would happen. Have you got user/pwd configured for node red itself? If not then I suggest doing a full refresh of the browser and check you can deploy a minor change, if that is ok then try the MQTT config again.
When I refreshed it asked me for Node-RED credentials again, and then when I went to test mqtt input it was connected. I'm not really sure what happened but thank you for the help.
E. - that is a very old version of node-red. If you are able to run the upgrade scripts, there are many enhancements that you may enjoy. Just be sure to make a copy of your sdcard first ;*)