Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers. It is designed to provide a asynchronous, cross-platform Python API to connect and communicate with e.g. sensors.
Supports Windows 11, version 22000 and greater
Supports Linux distributions with BlueZ >= 5.55
OS X/macOS support via Core Bluetooth API, from at least OS X version 10.15
Android backend compatible with python-for-android
Bleak supports reading, writing and getting notifications from GATT servers, as well as a function for discovering BLE devices.
To discover Bluetooth devices that can be connected to:
Connect to a Bluetooth device and read its model number:
DO NOT NAME YOUR SCRIPT bleak.py ! It will cause a circular import error.
See examples folder for more code, for instance example code for connecting to a TI SensorTag CC2650
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
