kevincar / bless

Cross-platform Bluetooth Low Energy Server Python Library
MIT License
105 stars 29 forks source link

Case Sensitive UUID #10

Closed kevincar closed 3 years ago

kevincar commented 3 years ago

The problem server.services is currently a dictionary, accessed by a string representation of the associated UUID. This can cause issues if the UUID was initially supplied as all upper-case or all lower-case. Regardless of how it is supplied, an interfaces should be supplied that standardizes the casing.

Reproduction Can be readily reproduced on the windows branch when running against the example/server.py

Expected behavior A UUID, whether provided in upper- or lower-case, should be handled appropriately. PyTests should account for this

Desktop (please complete the following information):