In questa pagina

QLowEnergyAdvertisingParameters::AddressInfo Class

class QLowEnergyAdvertisingParameters::AddressInfo

La norma " QLowEnergyAdvertisingParameters::AddressInfo " definisce gli elementi di una lista bianca. Per saperne di più...

Funzioni pubbliche

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

Variabili pubbliche

QBluetoothAddress address
QLowEnergyController::RemoteAddressType type
bool operator!=(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)
bool operator==(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)

Descrizione dettagliata

Un elenco di istanze di ` QLowEnergyAdvertisingParameters::AddressInfo ` viene passato a ` QLowEnergyAdvertisingParameters::setWhiteList()`. Le liste bianche vengono utilizzate per limitare i dispositivi autorizzati a interagire con la periferica. Il tipo di interazione consentito è definito da ` QLowEnergyAdvertisingParameters::FilterPolicy`.

Vedi anche ` QLowEnergyAdvertisingParameters::whiteList()`.

Documentazione delle funzioni membro

AddressInfo::AddressInfo()

Crea un'istanza di AddressInfo con i valori predefiniti.

Per impostazione predefinita, il membro ` AddressInfo::type ` è impostato su ` QLowEnergyController::PublicAddress ` e il membro ` AddressInfo::address ` ha un indirizzo nullo.

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

Crea una nuova istanza di AddressInfo. addr rappresenta l'indirizzo Bluetooth del dispositivo remoto e type la tipologia dell'indirizzo.

Documentazione sulle variabili membro

QBluetoothAddress AddressInfo::address

Questo è l'indirizzo Bluetooth di un dispositivo remoto.

QLowEnergyController::RemoteAddressType AddressInfo::type

Il tipo dell'indirizzo (pubblico o privato). Il costruttore predefinito di ` AddressInfo ` imposta questo valore su ` QLowEnergyController::PublicAddress`.

Elementi non membri correlati

bool operator!=(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)

Restituisce ` true ` se ` a ` e ` b ` non sono uguali in base al loro stato pubblico; in caso contrario, restituisce ` false`.

bool operator==(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)

Restituisce ` true ` se ` a ` e ` b ` sono uguali in base al loro stato pubblico; in caso contrario, restituisce ` 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.