这是我第一次尝试翻译技术文档,自己英语太烂,一直不敢尝试,感谢生活,让我勇敢迈出这第一步。
Qt Bluetooth
The Bluetooth API provides connectivity between Bluetooth enabled devices.
这个蓝牙API为蓝牙设备之间提供连接。
Currently, the API is supported on the following platforms: Android, iOS, Linux (BlueZ 4.x/5.x) and OS X.
目前,该API支持以下平台
Overview
Bluetooth is a short-range (less than 100 meters) wireless technology. It has a reasonably high data transfer rate of 2.1 Mbit/s, which makes it ideal for transferring data between devices. Bluetooth connectivity is based on basic device management, such as
scanning for devices, gathering information about them, and exchanging data between them.
蓝牙是一种短距离无线传输技术。它拥有很高的数据传输速率为:2.1Mbit/s,它非常适合设备之间的数据传输。蓝牙连接是基于基本设备管理,例如扫描设备,搜集信息和设备之间的数据传输。
Qt Bluetooth supports Bluetooth Low Energy development for client/central role use cases. Further details can be found in the Bluetooth
Low Energy Overview section.
Qt的蓝牙技术支持低功耗开发,。。。。。更多细节可以看蓝牙低功耗概述部分
A new addition in this Qt Bluetooth 5.7 release covers support for Bluetooth Low Energy applications performing the peripheral/server role. This new API is a Technology Preview.
Qt在5.7发行版本中新增加了一些功能,支持低功耗设备的应用程序,服务器角色的开发,不过这个技术在5.7版本中数据预览版。
Getting Started
To use the C++ library in your application, add the following configuration option to your .pro
file:
在C++程序中使用蓝牙模块开发应用程序的时候,需要在配置文件pro中添加以下配置项
QT += bluetooth
To use the classes of the module in your application you need the following import statement in your .qml
file:
在QML开发中,需要在QML文件中导入以下语句:
import QtBluetooth 5.2