Not receiving data from mqtt broker in a public channel

조회 수: 3 (최근 30일)
Dylan
Dylan 2024년 9월 19일
댓글: Dylan 2024년 9월 19일
I set up a subscription connection to the mqtt broker for a public channel that I've already added my device to. I'm confident that all of my username, password, client_id, and topic configurations have been set correctly. When I connect using MQTTX or mosquitto_sub, I don't receive any data. It says that my connection is successful, but proceeds to sit endlessly with no data being received. I'm at a dead end here. Does anyone know what I could be doing wrong?
  댓글 수: 2
Vinod
Vinod 2024년 9월 19일
You mention that you're unable to subscribe to public channels. Are you able to subscribe to updates to private channels using the same "MQTT Device"?
Manmeet
Manmeet 2024년 9월 19일
Just a guess, try putting your public firewall off.

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

답변 (1개)

Vinod
Vinod 2024년 9월 19일
편집: Vinod 2024년 9월 19일
My guess is the public channel has not seen an update since your client connected to it. I just created a public channel (2662756) and subscribed to it using an MQTT client and updated the channel. Try subscribing to the above channel. I'll keep pushing a datapoint to it every 5 minutes. If your client sees the update, then, I believe we have confirmed everything is fine.
  댓글 수: 1
Dylan
Dylan 2024년 9월 19일
My client is receiving the update from your channel. However, I still am unable to receive data from any other public channel. For example, I'm not receiving anything from channel 1785844, even though this broker just published data while my client was listening for messages.

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

커뮤니티

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

카테고리

Help CenterFile Exchange에서 Read Data from Channel에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by