Backend implementations
Bleak supports the following operating systems:
Windows 10, version 16299 (Fall Creators Update) and greater
Linux distributions with BlueZ >= 5.55 (See Linux backend for more details)
OS X/macOS support via Core Bluetooth API, from at least version 10.15
Partial Android support mostly using Python-for-Android/Kivy.
Partial, optional iOS support using Pythonista iOS app.
These pages document platform specific differences from the interface API.
Contents:
Backend selection
Communicating with Bluetooth hardware requires calling OS-specific APIs. These are abstracted as “backends” in Bleak.
The backend will be automatically selected based on the operating system Bleak is running on. In some cases, this may also depend on a specific runtime, like Pythonista on iOS.
- class bleak.backends.BleakBackend(*values)[source]
Identifiers for available built-in Bleak backends.
Added in version 2.0.
- BLUEZ_DBUS = 'bluez_dbus'
BlueZ D-Bus backend for Linux.
- CORE_BLUETOOTH = 'core_bluetooth'
CoreBluetooth backend for macOS.
- P4ANDROID = 'p4android'
Python for Android backend.
- PYTHONISTA_CB = 'pythonista_cb'
Pythonista CoreBluetooth backend for iOS and macOS.
- WIN_RT = 'win_rt'
Windows Runtime backend for Windows.
- bleak.backends.get_default_backend() BleakBackend[source]
Returns the preferred backend for the current platform/environment.
Added in version 2.0.