Qt Bluetooth C++ 類

啓用基本藍牙操作,像掃描設備並連接它們。 更多...

名稱空間

QBluetooth

藍牙相關的類和函數

QBluetoothAddress

Assigns an address to the Bluetooth device

QBluetoothDeviceDiscoveryAgent

Discovers the Bluetooth devices nearby

QBluetoothDeviceInfo

Stores information about the Bluetooth device

QBluetoothHostInfo

Encapsulates the details of a local QBluetooth device

QBluetoothLocalDevice

Enables access to the local Bluetooth device

QBluetoothServer

Uses the RFCOMM or L2cap protocol to communicate with a Bluetooth device

QBluetoothServiceDiscoveryAgent

Enables you to query for Bluetooth services

QBluetoothServiceInfo

Enables access to the attributes of a Bluetooth service

QBluetoothServiceInfo::Alternative

Stores attributes of a Bluetooth Data Element Alternative

QBluetoothServiceInfo::Sequence

Stores attributes of a Bluetooth Data Element Sequence

QBluetoothSocket

Enables connection to a Bluetooth device running a bluetooth server

QBluetoothUuid

為每個藍牙服務生成 UUID (通用唯一標識符)

QLowEnergyAdvertisingData

錶示藍牙低功耗廣告期間要廣播的數據

QLowEnergyAdvertisingParameters

錶示用於藍牙低功耗廣告的參數

QLowEnergyAdvertisingParameters::AddressInfo

QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list

QLowEnergyCharacteristic

Stores information about a Bluetooth Low Energy service characteristic

QLowEnergyCharacteristicData

用於設置 GATT 服務數據

QLowEnergyConnectionParameters

當請求或報告藍牙 LE 連接的參數更新時使用

QLowEnergyController

Access to Bluetooth Low Energy Devices

QLowEnergyDescriptor

Stores information about the Bluetooth Low Energy descriptor

QLowEnergyDescriptorData

用於創建 GATT 服務數據

QLowEnergyService

Represents an individual service on a Bluetooth Low Energy Device

QLowEnergyServiceData

用於設置 GATT 服務數據

詳細描述

The Qt Bluetooth C++ API enables an application to scan for devices and connect and interact with them in a more flexible way.

要使用 C++ 庫在應用程序,添加以下配置選項到 .pro 文件:

QT += bluetooth