QT 蓝牙低功耗例子 蓝牙低功耗例子QtBLE

上传者: 42095701 | 上传时间: 2024-07-01 20:11:03 | 文件大小: 1.79MB | 文件类型: 7Z
1、前述 Qt支持低功耗蓝牙仅限于Qt5.14以上版本,不支持win7; 需要在工程项目.pro文件中添加: QT += bluetooth 详细介绍:https://doc.qt.io/qt-5/qtbluetooth-index.html 参考资料:https://doc.qt.io/qt-5/qtbluetooth-le-overview.html 低功耗蓝牙控制主要有三部分: 1、代理部分,涉及类:QBluetoothDeviceDiscoveryAgent,用于扫描设备; 2、控制器部分:涉及类:QLowEnergyController,用于连接设备、发现服务; 3、服务部分:涉及类:QLowEnergyService,用于连接服务、特征读写、Notify功能打开/关闭等; 环境介绍 QT版本: 5.12.6 以上 编译环境: win10 64位 搜寻附近全部的蓝牙设备 根据搜寻出的蓝牙设备信息,筛选出要连接的蓝牙设备进行连接 建立连接后,去获取该蓝牙设备等services列表,根据约定好的服务uuid筛选出自己需要的服务 发现对应的服务后,根据约定好的服

文件下载

资源详情

[{"title":"( 301 个子文件 1.79MB ) QT 蓝牙低功耗例子\n蓝牙低功耗例子QtBLE","children":[{"title":"corecrt_malloc.h.9976ED57D22B76F6.idx.tmp.1d25b1bf <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"string.48E91C764DF01E67.idx.tmp.52f0f1cd <span style='color:#111;'> 9.61KB </span>","children":null,"spread":false},{"title":"qpixelformat.h.AE0BEB535F52E0E9.idx.tmp.7432ad28 <span style='color:#111;'> 19.71KB </span>","children":null,"spread":false},{"title":"moc_service.cpp <span style='color:#111;'> 8.37KB </span>","children":null,"spread":false},{"title":"moc_controller.cpp <span style='color:#111;'> 8.36KB </span>","children":null,"spread":false},{"title":"moc_mainwindow.cpp <span style='color:#111;'> 7.04KB </span>","children":null,"spread":false},{"title":"moc_agent.cpp <span style='color:#111;'> 6.57KB </span>","children":null,"spread":false},{"title":"service.cpp <span style='color:#111;'> 5.94KB </span>","children":null,"spread":false},{"title":"mainwindow.cpp <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"controller.cpp <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"agent.cpp <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"QtBLE.pro.user.d0e79fd <span style='color:#111;'> 21.90KB </span>","children":null,"spread":false},{"title":"Makefile.Debug <span style='color:#111;'> 80.45KB </span>","children":null,"spread":false},{"title":"QtBLE.exe <span style='color:#111;'> 182.00KB </span>","children":null,"spread":false},{"title":"ui_mainwindow.h <span style='color:#111;'> 9.13KB </span>","children":null,"spread":false},{"title":"service.h <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"mainwindow.h <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"controller.h <span style='color:#111;'> 991B </span>","children":null,"spread":false},{"title":"agent.h <span style='color:#111;'> 683B </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"emmintrin.h.D936C4DB267B22B6.idx <span style='color:#111;'> 146.80KB </span>","children":null,"spread":false},{"title":"qnamespace.h.5015922B86801F98.idx <span style='color:#111;'> 139.55KB </span>","children":null,"spread":false},{"title":"qmetatype.h.CE638FB0F9BB539B.idx <span style='color:#111;'> 119.29KB </span>","children":null,"spread":false},{"title":"qstring.h.F3BA4C04571BF779.idx <span style='color:#111;'> 112.90KB </span>","children":null,"spread":false},{"title":"xmmintrin.h.BB3741A21C6DE897.idx <span style='color:#111;'> 82.21KB </span>","children":null,"spread":false},{"title":"qlocale.h.592F7BFCC6B7F303.idx <span style='color:#111;'> 81.09KB </span>","children":null,"spread":false},{"title":"qtypeinfo.h.5DF199A60F1639C3.idx <span style='color:#111;'> 60.24KB </span>","children":null,"spread":false},{"title":"stdio.h.906B0F35ABDB86DA.idx <span style='color:#111;'> 52.86KB </span>","children":null,"spread":false},{"title":"mmintrin.h.08701D36B04FE18A.idx <span style='color:#111;'> 48.22KB </span>","children":null,"spread":false},{"title":"corecrt_wstdio.h.82C514C8C817155B.idx <span style='color:#111;'> 45.38KB </span>","children":null,"spread":false},{"title":"stdlib.h.FC1ACF65C4EC0918.idx <span style='color:#111;'> 43.89KB </span>","children":null,"spread":false},{"title":"type_traits.EA62AFB9C3F978B1.idx <span style='color:#111;'> 42.80KB </span>","children":null,"spread":false},{"title":"qchar.h.BA49E86DFC3F000D.idx <span style='color:#111;'> 42.48KB </span>","children":null,"spread":false},{"title":"cmath.2193BBB262338EA8.idx <span style='color:#111;'> 42.07KB </span>","children":null,"spread":false},{"title":"qrect.h.6B839E082B78B3D6.idx <span style='color:#111;'> 41.77KB </span>","children":null,"spread":false},{"title":"qvariant.h.082A9B4554ED7E33.idx <span style='color:#111;'> 41.74KB </span>","children":null,"spread":false},{"title":"corecrt_math.h.22351F5E5FF19875.idx <span style='color:#111;'> 40.95KB </span>","children":null,"spread":false},{"title":"xlocale.ACD1694A51FA65C4.idx <span style='color:#111;'> 37.89KB </span>","children":null,"spread":false},{"title":"qwidget.h.D95512F4AA8C18E2.idx <span style='color:#111;'> 37.77KB </span>","children":null,"spread":false},{"title":"qbytearray.h.7D6DC0D894CAC649.idx <span style='color:#111;'> 36.54KB </span>","children":null,"spread":false},{"title":"qflags.h.10D6CD1EAD4555AF.idx <span style='color:#111;'> 30.59KB </span>","children":null,"spread":false},{"title":"algorithm.D979A44577256AF1.idx <span style='color:#111;'> 29.54KB </span>","children":null,"spread":false},{"title":"xutility.30FEDE6890208E68.idx <span style='color:#111;'> 29.37KB </span>","children":null,"spread":false},{"title":"qlist.h.58EC39EAF67C8711.idx <span style='color:#111;'> 28.26KB </span>","children":null,"spread":false},{"title":"qsharedpointer_impl.h.447B4A5F7BD00BDA.idx <span style='color:#111;'> 27.16KB </span>","children":null,"spread":false},{"title":"qbluetoothuuid.h.FD3F1B93E7363668.idx <span style='color:#111;'> 26.88KB </span>","children":null,"spread":false},{"title":"xfunctional.8859C5F3E898F68A.idx <span style='color:#111;'> 26.56KB </span>","children":null,"spread":false},{"title":"qhash.h.BFB596386B61D764.idx <span style='color:#111;'> 26.29KB </span>","children":null,"spread":false},{"title":"qmap.h.854051CA9413ABE1.idx <span style='color:#111;'> 25.64KB </span>","children":null,"spread":false},{"title":"limits.07FB1B006413D7F7.idx <span style='color:#111;'> 25.46KB </span>","children":null,"spread":false},{"title":"sal.h.AAFD76E491815E37.idx <span style='color:#111;'> 24.54KB </span>","children":null,"spread":false},{"title":"xstring.A400782E7960B515.idx <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false},{"title":"qobjectdefs.h.591D37BB3957AD42.idx <span style='color:#111;'> 23.65KB </span>","children":null,"spread":false},{"title":"qglobal.h.65C86ABDF8286C1E.idx <span style='color:#111;'> 23.08KB </span>","children":null,"spread":false},{"title":"qcoreevent.h.3D77B5C7E6A28827.idx <span style='color:#111;'> 21.94KB </span>","children":null,"spread":false},{"title":"vector.0AB7D25E13A0004A.idx <span style='color:#111;'> 21.59KB </span>","children":null,"spread":false},{"title":"chrono.327E0A8801C45847.idx <span style='color:#111;'> 20.97KB </span>","children":null,"spread":false},{"title":"system_error.779748CF3CC86D46.idx <span style='color:#111;'> 20.10KB </span>","children":null,"spread":false},{"title":"qmargins.h.565C0363D484B67A.idx <span style='color:#111;'> 19.45KB </span>","children":null,"spread":false},{"title":"qvector.h.33D4952F11DE0FDD.idx <span style='color:#111;'> 18.68KB </span>","children":null,"spread":false},{"title":"string.h.83891B5A338760DB.idx <span style='color:#111;'> 18.39KB </span>","children":null,"spread":false},{"title":"qobject.h.064986724120EA5A.idx <span style='color:#111;'> 18.36KB </span>","children":null,"spread":false},{"title":"qpainterpath.h.F81DBC7448AED665.idx <span style='color:#111;'> 18.13KB </span>","children":null,"spread":false},{"title":"qsize.h.9175D9449D17F240.idx <span style='color:#111;'> 18.13KB </span>","children":null,"spread":false},{"title":"qdebug.h.FA43B22BF4E91D2C.idx <span style='color:#111;'> 18.01KB </span>","children":null,"spread":false},{"title":"qimage.h.1CF9729BB81A11FE.idx <span style='color:#111;'> 17.94KB </span>","children":null,"spread":false},{"title":"tuple.9C929918FD061B50.idx <span style='color:#111;'> 17.68KB </span>","children":null,"spread":false},{"title":"qtransform.h.5F5E2A84589CE78A.idx <span style='color:#111;'> 17.28KB </span>","children":null,"spread":false},{"title":"qfont.h.46D22D73533074E5.idx <span style='color:#111;'> 17.27KB </span>","children":null,"spread":false},{"title":"corecrt_wstring.h.7F18FD37578605E5.idx <span style='color:#111;'> 17.09KB </span>","children":null,"spread":false},{"title":"qobjectdefs_impl.h.8445C83F3B9F830D.idx <span style='color:#111;'> 16.18KB </span>","children":null,"spread":false},{"title":"qcolor.h.720430E9C8B68384.idx <span style='color:#111;'> 16.12KB </span>","children":null,"spread":false},{"title":"corecrt_wstdlib.h.28FFD773FBD26F99.idx <span style='color:#111;'> 16.01KB </span>","children":null,"spread":false},{"title":"qbrush.h.23452C63F852C93B.idx <span style='color:#111;'> 15.92KB </span>","children":null,"spread":false},{"title":"crtdbg.h.914BC0F63B6AB544.idx <span style='color:#111;'> 15.71KB </span>","children":null,"spread":false},{"title":"qpoint.h.24211D45189E2EB2.idx <span style='color:#111;'> 15.66KB </span>","children":null,"spread":false},{"title":"qtextstream.h.AD0197F41AE65EFF.idx <span style='color:#111;'> 15.20KB </span>","children":null,"spread":false},{"title":"iosfwd.C8AE76254F0CE37F.idx <span style='color:#111;'> 15.05KB </span>","children":null,"spread":false},{"title":"qbluetoothdeviceinfo.h.B479975F68452BF1.idx <span style='color:#111;'> 14.93KB </span>","children":null,"spread":false},{"title":"qline.h.20CFA84EC096B995.idx <span style='color:#111;'> 14.67KB </span>","children":null,"spread":false},{"title":"qdatastream.h.648F7433AC63A794.idx <span style='color:#111;'> 14.66KB </span>","children":null,"spread":false},{"title":"utility.156E4511980E64A3.idx <span style='color:#111;'> 14.62KB </span>","children":null,"spread":false},{"title":"time.h.D9F3C200089E4312.idx <span style='color:#111;'> 14.55KB </span>","children":null,"spread":false},{"title":"qset.h.257E9B90A5B9C228.idx <span style='color:#111;'> 14.15KB </span>","children":null,"spread":false},{"title":"functional.B9B944D7DFA0D95E.idx <span style='color:#111;'> 13.09KB </span>","children":null,"spread":false},{"title":"xlocnum.15F4015AAE3C47E6.idx <span style='color:#111;'> 13.01KB </span>","children":null,"spread":false},{"title":"xmemory0.AE3AA5C691995BC0.idx <span style='color:#111;'> 12.47KB </span>","children":null,"spread":false},{"title":"qpalette.h.0923904BED645E06.idx <span style='color:#111;'> 12.25KB </span>","children":null,"spread":false},{"title":"qalgorithms.h.4B261F33BDCB0A22.idx <span style='color:#111;'> 12.07KB </span>","children":null,"spread":false},{"title":"list.EFD06891A2A3EB9E.idx <span style='color:#111;'> 12.01KB </span>","children":null,"spread":false},{"title":"iterator.56AF606D9B9E9260.idx <span style='color:#111;'> 11.83KB </span>","children":null,"spread":false},{"title":"qvarlengtharray.h.CBF750B7675A509D.idx <span style='color:#111;'> 11.68KB </span>","children":null,"spread":false},{"title":"qkeysequence.h.3D1ADE0772F43CD3.idx <span style='color:#111;'> 11.65KB </span>","children":null,"spread":false},{"title":"qstringlist.h.F180ACDB32824654.idx <span style='color:#111;'> 11.25KB </span>","children":null,"spread":false},{"title":"xtgmath.h.C4F3681FD4B7E926.idx <span style='color:#111;'> 11.18KB </span>","children":null,"spread":false},{"title":"qsizepolicy.h.3AE15879E6B0D688.idx <span style='color:#111;'> 10.61KB </span>","children":null,"spread":false},{"title":"qbasicatomic.h.6FD89ECD3C9FFBFE.idx <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"qsysinfo.h.97B28ACB52CE8994.idx <span style='color:#111;'> 10.26KB </span>","children":null,"spread":false},{"title":"qhashfunctions.h.6B85D37F120F586F.idx <span style='color:#111;'> 10.21KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明