![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/909925/image.png)
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일)
이전 댓글 표시
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/907955/image.png)
댓글 수: 0
채택된 답변
Christopher Stapels
2022년 2월 28일
The topic location is a little confusing. Where it says "topic" you need to edit that field.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/909925/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/909925/image.png)
추가 답변 (1개)
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.
댓글 수: 0
커뮤니티
더 많은 답변 보기: ThingSpeak 커뮤니티
참고 항목
카테고리
Help Center 및 File Exchange에서 MQTT API에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!