raydriver.core.bluetooth
BluetoothDeviceInfo
A paired Bluetooth device offered for a Serial Port Profile connection.
address
address: str
channel
channel: Optional[int]
name
name: Optional[str]
Functions
is_supported()
is_supported() -> bool
Whether this build has a Bluetooth SPP backend.
| Parameter | Type | Description |
|---|---|---|
| Returns | bool |
list_paired_devices()
list_paired_devices() -> list[BluetoothDeviceInfo]
Enumerate paired Bluetooth devices that can carry SPP/RFCOMM.
Backends that cannot query service records return every paired device. Enumeration failures (no adapter, sandbox denial) yield an empty list.
| Parameter | Type | Description |
|---|---|---|
| Returns | list[BluetoothDeviceInfo] |
normalize_address()
normalize_address(address: str) -> str
Normalizes a Bluetooth address to uppercase colon-separated form.
| Parameter | Type | Description |
|---|---|---|
address | str | |
| Returns | str |