QBluetooth Namespace

QBluetooth 네임스페이스는 Bluetooth와 관련된 클래스 및 함수를 제공합니다. 더 보기...

Header: #include <QBluetooth>
qmake: QT += bluetooth

유형

enum class AttAccessConstraint { AttAuthorizationRequired, AttAuthenticationRequired, AttEncryptionRequired }
flags AttAccessConstraints
QLowEnergyHandle
enum class Security { NoSecurity, Authorization, Authentication, Encryption, Secure }
flags SecurityFlags

상세 설명

유형 문서

열거형 클래스 QBluetooth::AttAccessConstraint
플래그 QBluetooth::AttAccessConstraints

이 열거형은 ATT 속성을 읽거나 쓰기 위한 가능한 요구 사항을 설명합니다.

Constant설명
QBluetooth::AttAccessConstraint::AttAuthorizationRequired0x1클라이언트가 속성에 액세스하려면 ATT 서버의 권한이 필요합니다.
QBluetooth::AttAccessConstraint::AttAuthenticationRequired0x2클라이언트가 속성에 액세스하려면 인증을 받아야 합니다.
QBluetooth::AttAccessConstraint::AttEncryptionRequired0x4연결이 암호화된 경우에만 속성에 액세스할 수 있습니다.

AttAccessConstraints 유형은 QFlags<AttAccessConstraint>에 대한 typedef입니다. AttAccessConstraint 값의 OR 조합을 저장합니다.

QLowEnergyHandle

블루투스 저에너지 ATT 어트리뷰트 핸들에 대한 타입 정의.

열거형 클래스 QBluetooth::Security
플래그 QBluetooth::SecurityFlags

이 열거형은 블루투스 서비스의 보안 요구 사항을 설명합니다.

상수설명
QBluetooth::Security::NoSecurity0x00이 서비스에는 보안이 필요하지 않습니다.
QBluetooth::Security::Authorization0x01장치가 인증 페어링되지 않은 경우 사용자의 인증이 필요한 서비스입니다.
QBluetooth::Security::Authentication0x02서비스에 인증이 필요합니다. 기기가 페어링되어야 하며, 기기가 인증된 페어링이 아닌 경우 연결 시 사용자에게 메시지가 표시됩니다.
QBluetooth::Security::Encryption0x04이 서비스를 사용하려면 통신 링크를 암호화해야 합니다. 이 서비스를 사용하려면 장치가 페어링되어 있어야 합니다.
QBluetooth::Security::Secure0x08이 서비스를 사용하려면 통신 링크의 보안이 필요합니다. 블루투스 2.1 이상의 간편 페어링이 필요합니다. 레거시 페어링은 허용되지 않습니다.

보안 플래그 유형은 QFlags<보안>에 대한 유형 정의입니다. 보안 값의 OR 조합을 저장합니다.

© 2025 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.