#bleak Multiple Characteristics with this UUID

1 messages · Page 1 of 1 (latest)

merry plaza
#

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

keen spade
#

@merry plaza is your host computer Windows, Mac, or Linux?

merry plaza
median sedge
#

cp 7.x has a uart service for circuitpython itself now

merry plaza
#

Thanks for taking a look @median sedge -- do you know if there's a way I can work around this in the mean time?

median sedge
#

simplest is to disable the workflow from cp

#

which is supervisor.disable_ble_workflow() iirc

merry plaza
#

That worked! thanks again

#

also TIL about the supervisor module

median sedge
#

🙂

merry plaza
#

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?

median sedge
#

is it in safe mode? I think I'll switch the UUID of the CP serial.

merry plaza
#

it is not in safe mode as far as I know - I believe the leds would be yellow if it was in safe mode

median sedge
#

ya, I think so too