Jakeler / ble-serial

"RFCOMM for BLE" a UART over Bluetooth low energy (4+) bridge for Linux, Mac and Windows
https://blog.ja-ke.tech/tags/#bluetooth
MIT License
264 stars 37 forks source link

Bleak backend #17

Closed Jakeler closed 3 years ago

Jakeler commented 3 years ago

Fixes #5

TODO:

Jakeler commented 3 years ago

@AGlass0fMilk Could you please take a look and try this branch out? It works pretty well in my testing now, but I am unsure about the address type, is specifying it not required for BlueZ? Bleak uses the parameter only in the Windows dotnet backend as far as I can tell. Also let me know if you find any other bugs.

AGlass0fMilk commented 3 years ago

Hi @Jakeler I will look into this soon.

I've developed a BLE UART service for Mbed OS and made some integration tests using Bleak. Not sure if it's helpful now but you can find that work here:

https://github.com/EmbeddedPlanet/ep-oc-mcu/blob/0494973c512da087c11bd4a16dd5c4aa0dcd4cc2/features/FEATURE_BLE/experimental/TESTS/host_tests/ble_serial_test.py