当前位置:网站首页>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
最后、程序跑的很好

边栏推荐
- Apple CMS imitation watermelon video atmospheric response video template source code
- 疫情远程办公经验分享| 社区征文
- Dp83848+ network cable hot plug
- [Yugong series] go teaching course 002 go language environment installation in July 2022
- Pytest基础自学系列(一)
- Virtual commodity account trading platform source code_ Support personal QR code collection
- Asynchronous development process - touch your hand and lead you to realize a promise
- 【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
- 什么是上下文?
- EIG在智利推出可再生能源平台Grupo Cerro
猜你喜欢

2021 RSC | Drug–target affinity prediction using graph neural network and contact maps
![[cloud native] those lines of code that look awesome but have a very simple principle](/img/6d/220c51a643263f431fb57c97c4b8ff.png)
[cloud native] those lines of code that look awesome but have a very simple principle

A beautiful API document generation tool

UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
![leetcode:1314. Matrix area and [2D prefix and template]](/img/b4/2c9e66c8eafe1db2a3d07e861494e0.png)
leetcode:1314. Matrix area and [2D prefix and template]

Intersection traffic priority, illustration of intersection traffic rules

MySQL JDBC编程

Dp83848+ network cable hot plug

GUI 应用:socket 网络聊天室

Boutique website navigation theme whole station source code WordPress template adaptive mobile terminal
随机推荐
Cmake compilation option setting in ros2
Imitation of "game bird" source code, mobile game issue evaluation, open service, open test collection, game download website template
6-5漏洞利用-SSH弱口令破解利用
GUI 应用:socket 网络聊天室
What does software testing do? Find defects and improve the quality of software
博朗与Virgil Abloh于2021年为纪念博朗品牌100周年而联合打造的“功能性艺术”将在博物馆展出Abloh作品期间首次亮相
Architecture practice camp - graduation project of module 9 of phase 6
B. All Distinct
Distributed cap theory
【安全攻防】序列化与反序列,你了解多少?
leetcode 121 Best Time to Buy and Sell Stock 买卖股票的最佳时机(简单)
Redis:有序集合zset类型数据操作命令
Network - vxlan
牛客小白月赛49
Leetcode skimming: binary tree 09 (minimum depth of binary tree)
最长递增子序列问题(你真的会了吗)
PaddleHub人脸识别方案部署,将训练好的模型在pytchrom中进行部署应用
Krypton saikr daily question - CTF
微信公众号无限回调授权系统源码
西部数据绿盘、蓝盘、黑盘、红盘和紫盘有什么区别