Not receiving data from mqtt broker in a public channel
11 次查看(过去 30 天)
显示 更早的评论
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
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"?
回答(1 个)
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.
社区
更多回答在 ThingSpeak Community
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Write Data to Channel 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!