I am trying to publish data through desktop MQTT Client, but it's get connected but when I am doing subscribe it says connection lost?

조회 수: 5 (최근 30일)
Hi , I am doing this excample , I have configured MQTT X client , it gets connected to my channel .
But when I am doing subscribe , it get's disconnected , says client not connected?
Also even after entering the required data in topic as per the excample it still says topic required, why it is so?
Someone kindly suggest what I am doing wrong in these two steps?

채택된 답변

Christopher Stapels
Christopher Stapels 2022년 2월 28일
The topic location is a little confusing. Where it says "topic" you need to edit that field.
  댓글 수: 1
Siddharth Lotia
Siddharth Lotia 2022년 3월 1일
Hi , thanks .
Earlier in the day , I found out this. I think it is really deceptive , Mathworks team should add some photo of this in that example for more clarity to the users

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

추가 답변 (1개)

Vinod
Vinod 2022년 2월 28일
If the connection is being dropped when you attempt to subscribe, it is most likely you are subscribing to an incorrect topic, or to a topic your client does not have permissions to.

커뮤니티

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

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by