Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BLESession: handle device UUIDs as list
In the debug for the issue #30, it turned out that the bluepy API ScanEntry.getValueText() for adtypes may return multiple UUIDs concatenated with comma. Current code assumes that the API returns single UUID, then multiple UUIDs cause the "Error: Non-hexadecimal digit found" for the comma. To fix it, replace ScanEntry.getValueText() call with getValue(), and handle the result as a list of UUIDs. Also rename the helper function _get_dev_uuid() to _get_dev_uuids() accordingly. Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
- Loading branch information