AddressInfo Class

( QLowEnergyAdvertisingParameters::AddressInfo )

The QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list. 更多...

頭: #include <AddressInfo>
qmake: QT += bluetooth
Since: Qt 5.7

公共函數

AddressInfo (const QBluetoothAddress & addr , QLowEnergyController::RemoteAddressType type )
AddressInfo ()

公共變量

QBluetoothAddress address
QLowEnergyController::RemoteAddressType type

詳細描述

The QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list.

A list of QLowEnergyAdvertisingParameters::AddressInfo instances is passed to QLowEnergyAdvertisingParameters::setWhiteList (). White lists are used to restrict the devices which have the permission to interact with the peripheral. The permitted type of interaction is defined by QLowEnergyAdvertisingParameters::FilterPolicy .

另請參閱 QLowEnergyAdvertisingParameters::whiteList ().

成員函數文檔編製

AddressInfo:: AddressInfo (const QBluetoothAddress & addr , QLowEnergyController::RemoteAddressType type )

構造新的 AddressInfo 實例。 addr represents the Bluetooth address of the remote device and type the nature of the address.

AddressInfo:: AddressInfo ()

Constructs a default constructed AddressInfo 實例。

默認情況下 AddressInfo::type member is set to QLowEnergyController::PublicAddress AddressInfo::address member has a null address.

成員變量文檔編製

QBluetoothAddress AddressInfo:: address

This is the Bluetooth address of a remote device.

QLowEnergyController::RemoteAddressType AddressInfo:: type

The type of the address (public or private). The AddressInfo default constructor initialises this value to QLowEnergyController::PublicAddress .