Ardurno Pubsubclient MQTT ESP8266 HIVE MQ上的连接问题
我有一个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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论