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

Add read_uuid option #10

Closed AGlass0fMilk closed 3 years ago

AGlass0fMilk commented 3 years ago

In some implementations, a BLE UART uses notifications/indications to send data to the recipient as it is available.

The --read-uuid AKA -r option introduced in this commit allows the user to specify a Gatt Characteristic UUID that ble-serial will attempt to subscribe to notifications from by writing the CCCD of that characteristic.

Known limitations:

Jakeler commented 3 years ago

Looks good, thanks! Can you give a device example which requires writing the CCCD or what you did use to test?