Ardurno Pubsubclient MQTT ESP8266 HIVE MQ上的连接问题

发布于 2025-01-26 01:55:11 字数 416 浏览 5 评论 0原文

我有一个HIVEMQ MQTT经纪凭证,可以使用Ardurno的PubSubclient连接MQTT代理。.我试图将其投掷错误-4超时。

HIVEMQ经纪URL -xxxxxxx.s2.eu.hivemq.cloud 用户名:xxxx 密码:xxxx 港口-8883 没有证书 code -client.connect(“ client_id”,mqtt_username,mqtt_password))

我在mqtt Explorer中尝试了它的连接,因为我启用了tls option。可能会有一些人共享代码以在PubSubclient上启用TLS。(示例代码)。请注意,没有证书。只有encription。(Hive不给出证书)

[MQTT Explorer] [1] [1]:https://i.sstatic.net/ngzvl.png

谢谢 穆鲁根

I have a HiveMq mqtt broker credential to connect MQTT broker using PubsubClient from Ardurno .. I tried to connect its throwing an error -4 time out.

Hivemq broker url - xxxxxxx.s2.eu.hivemq.cloud
Username : xxxx
Password : xxxx
Port - 8883
No Certificate
Code - client.connect("client_id",mqtt_username,mqtt_password))

I tried in MQTT explorer its connected because i enabled the Tls option.Attached the screen for your reference. Could some one share the code to enable the Tls on PubsubClient.(Sample code). Note that no certificate. only encription.(Hive does not give certificate)

[Mqtt Explorer][1]
[1]: https://i.sstatic.net/nGzVl.png

Thanks
Murugan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文