Closed WouterJD closed 2 years ago
Hmmmm...
Changing
my_service_uuid = "A07498CA-AD5B-474E-940D-16F1FBE7E8CD"
my_char_uuid = "51FF12BB-3ED8-46E5-B4F9-D64E2FEC021B"
into
my_service_uuid = "a07498ca-ad5b-474e-940d-16f1fbe7e8cd"
my_char_uuid = "51ff12bb-3ed8-46e5-b4f9-d64e2fec021b"
solves the problem....
(Not that examples\server.py now works, but that may be another issue)
Perhaps def add_new_characteristic
should add service_uuid = str(UUID(service_uuid))
like def update_value does
Thanks @WouterJD!
Feel free to make a pull request for this if this solves the issue, otherwise I’ll see if I can get to this soon.
Will do. Thanks for reaction, struggling on windows 10...
closing this since it has been merged to the develop branch
The problem KeyError: 'A07498CA-AD5B-474E-940D-16F1FBE7E8CD'
Reproduction On windows 10:
..\examples\server.py
Expected behavior I would like to get acquainted with bless and hence try to run server.py, expecting it would run.
Screenshots
Desktop (please complete the following information):
Additional context No additional information, using server.py out of the box.
My name is Wouter Dubbeldam from the Netherlands and I am delighted that there is a library to create BLE-servers; it might be a great addition to FortiusAnt. Pointing me in the right direction would be really appreciated!