kevincar / bless

Cross-platform Bluetooth Low Energy Server Python Library
MIT License
86 stars 28 forks source link

Issue61 uuid case sensitivity #62

Closed WouterJD closed 2 years ago

WouterJD commented 2 years ago

examples/server.py defines the UUID with capitals

    my_service_uuid = "A07498CA-AD5B-474E-940D-16F1FBE7E8CD"
    my_char_uuid = "51FF12BB-3ED8-46E5-B4F9-D64E2FEC021B"

This causes a key-error in add_new_characteristic() which is resolved by adding service_uuid = str(UUID(service_uuid)) in that function. as is also done in update_value()

Perhaps to be done at more locations.