B4J Library [PyBridge] Bleak - Bluetooth BLE

Bleak is a Python BLE library: https://bleak.readthedocs.io/en/latest/index.html
The attached project wraps this library and allows scanning for BLE peripherals, connecting, reading, subscribing and writing.

The example project allows connecting to multiple devices at once.

java_vzc4t2s7Yj.gif



Python dependencies:
pip install bleak

Depends on B4J 10.2 beta #4+

Updates:
1.02 - Timeout implementation and Bleak.EnableDebugLogging.
 

Attachments

  • BleakExample.zip
    10.6 KB · Views: 35
  • Bleak.b4xlib
    4 KB · Views: 33
Last edited:

rwblinn

Well-Known Member
Licensed User
Longtime User
Tested successfully with B4J B4XPages UI Application and the B4R BLE Server rBLEServer (info).
Easy to use and many thanks for providing. Great work.
 
Last edited:
Top