Hi I tried connecting using: mosquitto_sub -d -h eu.thethings.network -t "+/devices/+/events/activations" -u rascalmkrwan1300 -P ttn-account-61B5402EBC3777F80F0C03123458396F -v
(I have changed the Appkey for security)
And I get:
Client (null) sending CONNECT
Client (null) received CONNACK (5)
Connection error: Connection Refused: not authorised.
Client (null) sending DISCONNECT
(Have migrated the end device to a new cluster)
I can see that my data is being received in live data
Do you mean TTS CE aka v3? If so and given you have the device showing live data, the application will have to be on v3, so that’s what you need to connect to.
That link comes up as 404 so you must have read it a while back.
I think I already have by linking to the correct documentation and making the observation about the v3 console showing the correct address, username and a link to get a password …
Ok , so I went to that page and generated a password. I now tried:
mosquitto_sub -d -h eu.thethings.network -t “+/devices/+/events/activations” -u “rascalmkrwan1300” -P “NNSXS.GFYRZEIW6PYEVHL7UNQX7HPKNHSVG7OGLXMFMJI.7APUUTQ3BDMIXJKYLLUVL3SFVUNVI2UPVOSANE7DX5Gzzzzz” -v
So now I’m using the mqtt password - Is this correct?
I’m alsofollowing this video :Integrating Node RED with The Things Stack - YouTube
but in the console it reports:
mqtt-broker:mqttBroker] Connection failed to broker: mqtts://eu1.cloud.thethings.network:1883
Thanks again for your reply
Same issue
Do I need the double quotes around the appid and appkey
EDIT: I managed to connect using the steps in the video now - I think I misstyped. But I would like to try the console command to connect as well
I meant should I have I used the appID of the device , rather than the mqtt one - but that’s probably a silly question. I’ve tried with and without quotes. Anyway I am seeing data on the node-red gui so that’s getting somewhere. Ultimately I wanted to sent to thingspeak. Also I previously was sending to thinger.io data buckets, which stopped working (maybe required an update)
Thanks again - think I was looking in the main app console page not in the dedicated mqtt settings.
Edit: - Now I get: all subscription requests were denied - Progress, I guess
Ok, so thanks for that. Anyway, I am now able to send my MKRWAN 1300 data (temperature) to Thingspeak.
While you are in a helpful mood - May I ask (concerning a gateway):
If I can’t get hold of the password/login info for a gateway that I have. ( A friend gave me the hardware and set it up and is since no longer about). If I need to migrate or update settings: Can I recreate the gateway on the new cluster, or will the hardware (MAC address or EUI) recognize it as pre-existing and prevent this? (Mikrotik Lora 8)