当前位置:网站首页>qt下开发mqtt的访问程序
qt下开发mqtt的访问程序
2022-07-04 03:53:00 【linchao100】
1、要下载mqtt模块
下载地址:https://github.com/emqx/qmqtt,注意要下载qmqtt-master版本的,不要下载qtmqtt-dev
下载符合你的qt版本,否则要接近的版本,还要改里面的编译版本号,我是通过查找替换修改的。
2、编译安装qtmqtt模块
具体要把头文件拷贝到qt开发环境的include目录
用qt打开下载的pro文件
编译通过ok
把里面的prj、库、拷贝到相应的地方
3、可以试试里面例子是否能够编译
我编译了simpleclient.pro
出现错误分别是:
a、qtmqtt模块没有安装好,把prj两个文件拷贝到gcc64下,模块找到了;
b、头文件没有找到,头文件要用"QtMqtt/qmqttclient.h"
c、改程序,因为我的broker是要输入user和password
最后、程序跑的很好
边栏推荐
- Unity Resource path
- 架构训练毕业设计+总结
- MIN_RTO 对话
- Leetcode 121 best time to buy and sell stock (simple)
- B. All Distinct
- Exploration and practice of eventbridge in the field of SaaS enterprise integration
- Redis:有序集合zset类型数据操作命令
- Cmake compilation option setting in ros2
- Redis: operation command for collecting set type data
- 6-5漏洞利用-SSH弱口令破解利用
猜你喜欢
旭化成首次参展第五届中国国际进口博览会(5th CIIE)
leetcode:1314. 矩阵区域和【二维前缀和模板】
Boutique website navigation theme whole station source code WordPress template adaptive mobile terminal
Keysight N9320B射频频谱分析仪解决轮胎压力监测方案
Formatted text of Kivy tutorial (tutorial includes source code)
仿《游戏鸟》源码 手游发号评测开服开测合集专区游戏下载网站模板
2020 Bioinformatics | TransformerCPI
Dp83848+ network cable hot plug
优秀的测试/开发程序员是怎么修炼的?该往哪走......
Redis: operation command for collecting set type data
随机推荐
RHCSA 01 - 创建分区与文件系统
leetcode:1314. 矩阵区域和【二维前缀和模板】
LeetCode136+128+152+148
PaddleHub人脸识别方案部署,将训练好的模型在pytchrom中进行部署应用
Leetcode brush question: binary tree 06 (symmetric binary tree)
RHCSA 04 - 进程管理
Distributed cap theory
MIN_RTO 对话
Redis:有序集合zset类型数据操作命令
Kivy教程之 自定义字体(教程含源码)
Unity资源路径
I.MX6U-ALPHA开发板(C语言版本LED驱动实验)
Rhcsa 08 - automount configuration
“找工作不要太在意工资”,这是我听过最大的谎言
Touch and take you to implement an EventEmitter
统计遗传学:第三章,群体遗传
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
Kivy tutorial 07 component and attribute binding implementation button button click to modify the label component (tutorial includes source code)
Imitation of "game bird" source code, mobile game issue evaluation, open service, open test collection, game download website template
Redis: operation command for collecting set type data