Can not connect to ThingSpeak MQTT broker using MQTT X Client
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Levani Meskhiya
am 4 Apr. 2022
Bearbeitet: Milan Tomin
am 2 Mär. 2024
Hello,
I have a problem with the connection to thingspeak MQTT broker using MQTT x client. After pressing the "Connect" button after a few seconds connection is not set.
I have followed the instructions described in: https://de.mathworks.com/help/thingspeak/use-desktop-mqtt-client-to-publish-to-a-channel.html.
Below you can see the settings in the MQTT X client. ClientID, Username and Password I took from the credentials file which was created when I add a new MQTT device in thingspeak.
I have already checked the discussion with a similar problem, but I can not figure out what could be the source of the problem.
I would like to ask your help with this problem.
Thank you,
Levani Meskhiya
0 Kommentare
Akzeptierte Antwort
Vinod
am 4 Apr. 2022
If you're connecting over Secure MQTT, you need to use port 8883, not port 1883 as your screenshot shows.
9 Kommentare
Vinod
am 4 Apr. 2022
Bearbeitet: Vinod
am 4 Apr. 2022
If websocket works, I would reccomend secure websocket (wss://) on port 443 with SSL/TLS enabled and CA signed server.
You'd have to check with your IT administrator about outgoing connection and which network ports are allowed, and specifically if outgoing connections on port 8883 are blocked by your firewall.
Weitere Antworten (1)
Hoa Vinh
am 15 Feb. 2024
1 Kommentar
Milan Tomin
am 2 Mär. 2024
Bearbeitet: Milan Tomin
am 2 Mär. 2024
Having the same problem, have you found any solution?
Although im using sp-react-native-mqtt in react native to connect to thingspeak.
I keep getting unknown host exception error, so it seems that the mqtt3.thingspeak.com part is somehow problematic?
Communitys
Weitere Antworten in ThingSpeak Community
Siehe auch
Kategorien
Mehr zu ThingSpeak finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!