Skip to main content

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.

ParameterTypeDescription
Returnsbool

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.

ParameterTypeDescription
Returnslist[BluetoothDeviceInfo]

normalize_address()​

normalize_address(address: str) -> str

Normalizes a Bluetooth address to uppercase colon-separated form.

ParameterTypeDescription
addressstr
Returnsstr