class QBluetooth

The QBluetooth namespace provides classes and functions related to Bluetooth. More

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

class Security

(inherits enum.Flag) This enum describe the security requirements of a Bluetooth service.

Constant

Description

QBluetooth.Security.NoSecurity

The service does not require any security.

QBluetooth.Security.Authorization

The service requires authorization by the user, unless the device is Authorized-Paired.

QBluetooth.Security.Authentication

The service requires authentication. Device must be paired, and the user is prompted on connection unless the device is Authorized-Paired.

QBluetooth.Security.Encryption

The service requires the communication link to be encrypted. This requires the device to be paired.

QBluetooth.Security.Secure

The service requires the communication link to be secure. Simple Pairing from Bluetooth 2.1 or greater is required. Legacy pairing is not permitted.

class AttAccessConstraint

(inherits enum.Flag) This enum describes the possible requirements for reading or writing an ATT attribute.

Constant

Description

QBluetooth.AttAccessConstraint.AttAuthorizationRequired

The client needs authorization from the ATT server to access the attribute.

QBluetooth.AttAccessConstraint.AttAuthenticationRequired

The client needs to be authenticated to access the attribute.

QBluetooth.AttAccessConstraint.AttEncryptionRequired

The attribute can only be accessed if the connection is encrypted.