BluetoothLocalDevice
Base classes
| Name | Children | Inherits |
|---|---|---|
| ObjectMixin prettyqt.core.object |
||
| QBluetoothLocalDevice PySide6.QtBluetooth QBluetoothLocalDevice(self, address: PySide6.QtBluetooth.QBluetoothAddress, /, parent: PySide6.QtCore.QObject | None \= None) -> None |
â‹” Inheritance diagram
graph TD
706979133["bluetooth.BluetoothLocalDevice"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
247625454["QtBluetooth.QBluetoothLocalDevice"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
3227531497 --> 706979133
2751680898 --> 3227531497
247625454 --> 706979133
3984060476 --> 247625454
37984305 --> 3984060476
2751680898 --> 37984305
🛈 DocStrings
Bases: ObjectMixin, QBluetoothLocalDevice
Enables access to the local Bluetooth device.
Source code in prettyqt/bluetooth/bluetoothlocaldevice.py
__bool__()
for_all_devices() -> list[bluetooth.BluetoothHostInfo]
classmethod
get_connected_devices() -> list[bluetooth.BluetoothAddress]
get_host_mode() -> HostModeStr
get_pairing_status(address: bluetooth.QBluetoothAddress | int | str) -> PairingStr
Return pairing status.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
QBluetoothAddress | int | str
|
bluetooth address |
required |
Source code in prettyqt/bluetooth/bluetoothlocaldevice.py
request_pairing(address: bluetooth.QBluetoothAddress | int | str, pairing: PairingStr | Pairing)
Request a pairing to given bluetooth address.
Source code in prettyqt/bluetooth/bluetoothlocaldevice.py
set_host_mode(mode: HostModeStr | HostMode)
Set host mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode
|
HostModeStr | HostMode
|
host mode to use |
required |