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?

6 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Christopher Stapels
Christopher Stapels el 28 de Feb. de 2022
The topic location is a little confusing. Where it says "topic" you need to edit that field.
  1 comentario
Siddharth Lotia
Siddharth Lotia el 1 de Mzo. de 2022
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

Iniciar sesión para comentar.

Más respuestas (1)

Vinod
Vinod el 28 de Feb. de 2022
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.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre MQTT API en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by