이 페이지에서

QLowEnergyAdvertisingParameters::AddressInfo Class

class QLowEnergyAdvertisingParameters::AddressInfo

QLowEnergyAdvertisingParameters::AddressInfo 는 화이트리스트의 요소를 정의합니다. 더 보기...

공개 함수

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

공용 변수

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)

자세한 설명

QLowEnergyAdvertisingParameters::AddressInfo 인스턴스 목록이 QLowEnergyAdvertisingParameters::setWhiteList()에 전달됩니다. 화이트리스트는 주변 장치와 상호 작용할 수 있는 권한을 가진 장치를 제한하는 데 사용됩니다. 허용되는 상호 작용 유형은 QLowEnergyAdvertisingParameters::FilterPolicy 에 의해 정의됩니다.

QLowEnergyAdvertisingParameters::whiteList()도 참조하십시오 .

멤버 함수 문서

AddressInfo::AddressInfo()

기본 생성된 AddressInfo 인스턴스를 생성합니다.

기본적으로 ` AddressInfo::type ` 멤버는 ` QLowEnergyController::PublicAddress `로 설정되며, ` AddressInfo::address ` 멤버는 null 주소를 가집니다.

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

새로운 AddressInfo 인스턴스를 생성합니다. ` addr `는 원격 장치의 블루투스 주소를 나타내며, ` type `는 주소의 유형을 나타냅니다.

멤버 변수 설명

QBluetoothAddress AddressInfo::address

이것은 원격 장치의 블루투스 주소입니다.

QLowEnergyController::RemoteAddressType AddressInfo::type

주소의 유형(공개 또는 비공개). ` AddressInfo `의 기본 생성자는 이 값을 ` QLowEnergyController::PublicAddress`로 초기화합니다.

관련 비회원 요소

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

a 와 b 의 공개 상태가 서로 다를 경우 ` true `를 반환하고, 그렇지 않은 경우 ` false`를 반환합니다.

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

a 와 b 의 공개 상태가 동일할 경우 true 를 반환하고, 그렇지 않은 경우 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.