首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
socketremotehostclosederror专题
Qt的qtmqtt库连接onenet出现QMQTT::SocketRemoteHostClosedError解决方法
问题描述 在Qt发开过程中使用qtmqtt库来连接onenet的mqtt服务器,在ClientId、Username和Password均填写正确的情况下还是连接不上,查看错误显示QMQTT::SocketRemoteHostClosedError。 解决方法 client中的CleanSession标志位必须设置为true。 client = new QMQTT::Client;c
阅读更多...