AddressInfo Class
(QLowEnergyAdvertisingParameters::AddressInfo)The QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list. 更多...
头文件: | #include <AddressInfo> |
qmake: | QT += bluetooth |
开始支持版本: | Qt 5.7 |
公有函数
AddressInfo(const QBluetoothAddress &addr, QLowEnergyController::RemoteAddressType type) | |
AddressInfo() |
公有变量
详细描述
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)
Constructs a new AddressInfo instance. addr represents the Bluetooth address of the remote device and type the nature of the address.
AddressInfo::AddressInfo()
Constructs a default constructed AddressInfo instance.
By default the AddressInfo::type member is set to QLowEnergyController::PublicAddress and the 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.