IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

AddressInfo Class

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

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

AddressInfo Class▲

  • Header: AddressInfo

  • Since: Qt 5.7

  • qmake: QT += bluetooth

Detailed Description▲

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.

See Also▲

Member Function Documentation▲

 

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.

Member Variable Documentation▲

 

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.

Related Non-Members▲

 

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

Returns true if a and b are not equal with respect to their public state, otherwise returns false.

bool operator==(const AddressInfo &a, const AddressInfo &b)▲

Returns true if a and b are equal with respect to their public state, otherwise returns false.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+