Hello all, I am a new to ttn and mqtt but I was able to create a mqtt and connect my node-red app to communicate a month ago. Then, I had to do some more testing and deleted the old key and created a new one. Since then, I keep getting “Fail to connect to mqtt” and “Invalid token” error messages.
Any idea what could be wrong?
I used copy/paste method to copy the key from email to node-red config, but it still cannot connect.
The ONLY time you get access to the key is when it is on the web page - you have to copy it then. The other long sequence is the key id so that it can be referred to in the CLI and similar.
Well, the problem is partially solved…the NNSXS part was missing, so Node-red is now connecting fine, brings in the payload, however, I still get “Fail to connect to MQQT”.
Any other ideas? Is Node-red causing this message to be displayed or it is my console app?
Hi, I will reread it…I understood I needed to copy the API key somewhere and not MQTT key. I copied MQTT key in config of Node-Red and that’s how it’s connected. Last night was the first time I saw “fail to connect to mqtt” error.