#bleak Multiple Characteristics with this UUID
1 messages · Page 1 of 1 (latest)
I'm wondering if this is a bug in the new CP version that advertises (is that the right term?) multiple characteristics for the UART uuid?
Bleak's usage docs https://bleak.readthedocs.io/en/latest/usage.html have a note at the top stating "specifying characteristics by UUID or string representation of it might not always work in bleak version > 0.7.0" -- adafruit-blinka-bleio depends on bleak 0.11.0 so we would be in this boat
I poked around in blinka-bleio and _bleio a bit and things are very uuid-oriented in there so switching to reference characteristics by handle seems like it would be a big undertaking. Hoping for an easy resolution
@merry plaza is your host computer Windows, Mac, or Linux?
this is possibly an issue, but I thought connecting only to the appropriate advertisement would work out. We need to test this agin. Could you file an issue with the details against https://github.com/adafruit/Adafruit_Blinka_bleio ? Thanks
filed https://github.com/adafruit/Adafruit_Blinka_bleio/issues/37 -- please let me know if any additional detail is needed
cp 7.x has a uart service for circuitpython itself now
Thanks for taking a look @median sedge -- do you know if there's a way I can work around this in the mean time?
simplest is to disable the workflow from cp
which is supervisor.disable_ble_workflow() iirc
🙂
Resurrecting this thread-- supervisor.disable_ble_workflow() worked perfectly when the board was plugged in to usb, but when I try to run the same code on battery power I get the "Multiple Characteristics with this UUID" error again. Any idea why this might be happening?
is it in safe mode? I think I'll switch the UUID of the CP serial.
it is not in safe mode as far as I know - I believe the leds would be yellow if it was in safe mode
ya, I think so too