Jakeler / ble-serial

"RFCOMM for BLE" a UART over Bluetooth low energy (4+) bridge for Linux, Mac and Windows

Home Page:https://blog.ja-ke.tech/tags/#bluetooth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve characteristic selection and checking

Jakeler opened this issue · comments

commented
  • Allow also write property, for #27
  • Check for correct props earlier, only chose it if this matches

Idea is to filter by included list or user supplied uuid AND filter by required permission flags, instead of asserting this later. Result should be exactly one, raise otherwise.
If < 1: No characteristic with {req_prop} property found!
if > 1: Multiple matching {type} characteristics found, please specify one
Include options with details in log, especially on error.