Can not connect to ThingSpeak MQTT broker using MQTT X Client

조회 수: 10 (최근 30일)
Levani Meskhiya
Levani Meskhiya 2022년 4월 4일
편집: Milan Tomin 2024년 3월 2일
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

채택된 답변

Vinod
Vinod 2022년 4월 4일
If you're connecting over Secure MQTT, you need to use port 8883, not port 1883 as your screenshot shows.
  댓글 수: 9
Vinod
Vinod 2022년 4월 4일
편집: Vinod 2022년 4월 4일
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.
Levani Meskhiya
Levani Meskhiya 2022년 4월 4일
Ok, I will check. Thank you very much for your help.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Hoa Vinh
Hoa Vinh 2024년 2월 15일
I have problem cannot connect MQTTX to Thingspeak mqtt server.
host: mqtt:// mqtt3.thingspeak.com & port 1883 -> cannot
host: mqtts:// mqtt3.thingspeak.com & port 8883 -> cannot
What is the issue ?
  댓글 수: 1
Milan Tomin
Milan Tomin 2024년 3월 2일
편집: Milan Tomin 2024년 3월 2일
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?

댓글을 달려면 로그인하십시오.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by