Qt 蓝牙部分翻译

举报
DreamLife 发表于 2022/04/14 22:30:54 2022/04/14
【摘要】 这是我第一次尝试翻译技术文档,自己英语太烂,一直不敢尝试,感谢生活,让我勇敢迈出这第一步。 大部分都是直译,如有不妥,还请制导。 Qt Bluetooth The Bluetooth API provides connectivity between Bluetooth enabled device...

这是我第一次尝试翻译技术文档,自己英语太烂,一直不敢尝试,感谢生活,让我勇敢迈出这第一步。

大部分都是直译,如有不妥,还请制导。

Qt Bluetooth

The Bluetooth API provides connectivity between Bluetooth enabled devices.

这个蓝牙API为蓝牙设备之间提供连接。

Currently, the API is supported on the following platforms: AndroidiOSLinux (BlueZ 4.x/5.x) and OS X.

目前,该API支持以下平台

1. 安卓

2. iOS

3. Linux(BlueZ 4.X/5.X)

4. OS X

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

文章来源: dreamlife.blog.csdn.net,作者:DreamLife.,版权归原作者所有,如需转载,请联系作者。

原文链接:dreamlife.blog.csdn.net/article/details/52266884

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。