

The Wyns had been publishing pulp fiction under the Periodical House and A. run ( main ( address ))ĭO NOT NAME YOUR SCRIPT bleak.py! It will cause a circular import error.Ace Magazines was a comic-book and pulp-magazine publishing company headed by Aaron A. join ( map ( chr, model_number )))) asyncio. read_gatt_char ( MODEL_NBR_UUID ) print ( "Model Number: ".

run ( main ())Ĭonnect to a Bluetooth device and read its model number: import asyncio from bleak import BleakClient address = "24:71:89:cc:09:05" MODEL_NBR_UUID = "00002a24-0000-1000-8000-00805f9b34fb" async def main ( address ): async with BleakClient ( address ) as client : model_number = await client. discover () for d in devices : print ( d ) asyncio.

To discover Bluetooth devices that can be connected to: import asyncio from bleak import BleakScanner async def main (): devices = await BleakScanner. GATT servers, as well as a function for discovering BLE devices. OS X/macOS support via Core Bluetooth API, from at least OS X version 10.11Īndroid backend compatible with python-for-androidīleak supports reading, writing and getting notifications from Supports Linux distributions with BlueZ >= 5.43

Supports Windows 10, version 16299 (Fall Creators Update) or greater Installation $ pip install bleak Features It is designed to provide a asynchronous,Ĭross-platform Python API to connect and communicate with e.g. Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient.īleak is a GATT client software, capable of connecting to BLE devicesĪcting as GATT servers.
