Mar 5, 2025 Replies: 9 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. Python dependencies: pip install bleak Depends on B4J 10.2 beta #4+ Updates: 1.02 - Timeout implementation and Bleak.EnableDebugLogging. Attachments BleakExample.zip BleakExample.zip 10.6 KB · Views: 613 Bleak.b4xlib Bleak.b4xlib 4 KB · Views: 575 Last edited: Mar 9, 2025 Click to expand...
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. Python dependencies: pip install bleak Depends on B4J 10.2 beta #4+ Updates: 1.02 - Timeout implementation and Bleak.EnableDebugLogging.
tchart Well-Known Member Licensed User Longtime User Mar 6, 2025 #2 What Blueooth adaptor are you using Erel?
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2025 #3 Mini Bluetooth 5.0 USB Dongle – Gold Touch www.gold-touch.net
f0raster0 Well-Known Member Licensed User Longtime User Mar 8, 2025 #4 We tested this exmaple using the chip from Nordic nRF52 and nRF51, looking good tested here Now I can communicate directly from B4J to my BLE devices thanks Last edited: Mar 8, 2025
We tested this exmaple using the chip from Nordic nRF52 and nRF51, looking good tested here Now I can communicate directly from B4J to my BLE devices thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2025 #5 Bleak v1.00 is released. Note that it depends on PyBridge v0.70+ (0.70 is attached to the first post).
Bleak v1.00 is released. Note that it depends on PyBridge v0.70+ (0.70 is attached to the first post).
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2025 #6 V1.01 - Bleak.Is_Scanning property. This property is useful to avoid handling DeviceFound events after calling StopScan (which isn't an immediate action). Code: Private Sub BLE_DeviceFound (Device As BleakDevice) If BLE.IsScanning = False Then Return
V1.01 - Bleak.Is_Scanning property. This property is useful to avoid handling DeviceFound events after calling StopScan (which isn't an immediate action). Code: Private Sub BLE_DeviceFound (Device As BleakDevice) If BLE.IsScanning = False Then Return
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2025 #7 1.02 - Timeout implementation and Bleak.EnableDebugLogging.
rwblinn Well-Known Member Licensed User Longtime User Mar 10, 2025 #8 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: Mar 10, 2025
Tested successfully with B4J B4XPages UI Application and the B4R BLE Server rBLEServer (info). Easy to use and many thanks for providing. Great work.
Alex_Puz Member Licensed User Longtime User Jul 4, 2025 #9 (bleak._initialize) - Python Error (ModuleNotFoundError) - Method: module.exec: No module named 'bleak'
(bleak._initialize) - Python Error (ModuleNotFoundError) - Method: module.exec: No module named 'bleak'
Alex_Puz Member Licensed User Longtime User Jul 5, 2025 #10 Alex_Puz said: (bleak._initialize) - Python Error (ModuleNotFoundError) - Method: module.exec: No module named 'bleak' Click to expand... solved
Alex_Puz said: (bleak._initialize) - Python Error (ModuleNotFoundError) - Method: module.exec: No module named 'bleak' Click to expand... solved