QLowEnergyAdvertisingParameters::AddressInfo Class
class QLowEnergyAdvertisingParameters::AddressInfoQLowEnergyAdvertisingParameters::AddressInfo define los elementos de una lista blanca. Más...
Funciones públicas
| AddressInfo() | |
| AddressInfo(const QBluetoothAddress &addr, QLowEnergyController::RemoteAddressType type) |
Variables públicas
No miembros relacionados
| bool | operator!=(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b) |
| bool | operator==(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b) |
Descripción detallada
Una lista de instancias de QLowEnergyAdvertisingParameters::AddressInfo se pasa a QLowEnergyAdvertisingParameters::setWhiteList(). Las listas blancas se utilizan para restringir los dispositivos que tienen permiso para interactuar con el periférico. El tipo de interacción permitido se define en QLowEnergyAdvertisingParameters::FilterPolicy.
Véase también QLowEnergyAdvertisingParameters::whiteList().
Documentación de las funciones miembro
AddressInfo::AddressInfo()
Construye una instancia AddressInfo por defecto.
Por defecto, el miembro AddressInfo::type se establece en QLowEnergyController::PublicAddress y el miembro AddressInfo::address tiene una dirección nula.
AddressInfo::AddressInfo(const QBluetoothAddress &addr, QLowEnergyController::RemoteAddressType type)
Construye una nueva instancia de AddressInfo. addr representa la dirección Bluetooth del dispositivo remoto y type la naturaleza de la dirección.
Documentación de variables de miembro
QBluetoothAddress AddressInfo::address
Es la dirección Bluetooth de un dispositivo remoto.
QLowEnergyController::RemoteAddressType AddressInfo::type
El tipo de dirección (pública o privada). El constructor por defecto AddressInfo inicializa este valor a QLowEnergyController::PublicAddress.
No miembros relacionados
bool operator!=(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)
Devuelve true si a y b no son iguales con respecto a su estado público, en caso contrario devuelve false.
bool operator==(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)
Devuelve true si a y b son iguales con respecto a su estado público, en caso contrario devuelve false.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.