SimplePyBLE
Examples
SimplePyBLE examples in Python for listing adapters, scanning, connecting, reading, writing, notifications, hosting a peripheral and the asyncio API.
To learn how to use SimplePyBLE, please refer to the examples provided in the repository.
The following list briefly describes each example provided:
- list_adapters: List all available adapters.
- scan: Scan for nearby BLE devices.
- connect: Connect to a BLE device and list its services and characteristics.
- read: Read a characteristic's value.
- write: Write a characteristic's value.
- notify: Enable notifications on a characteristic.
- peripheral: Host a local peripheral that advertises a service and echoes writes to subscribed clients.
- dongl: Connect through a Dongl and answer pairing requests.
Asynchronous API
- scan_async: Scan for nearby BLE devices using
asyncio. - notify_async: Enable notifications on a characteristic using
asyncioandasync defcallbacks.
Usage
Install SimplePyBLE from PyPI or build it locally, and use SimpleBLE from Python with callbacks, error handling, GATT hosting, Dongl and Linux pairing, and asyncio.
Usage
Install SimpleSharpBLE from NuGet and use SimpleBLE from C# and .NET to scan, connect, read, write, receive notifications and call async methods.
