0

Maxlen for _bleio.Adapter.Name
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Maxlen for _bleio.Adapter.Name

by FriehoffT on Thu Jul 22, 2021 1:26 am

It seems there is a maxlen for _bleio.Adapter.name. When I try to set longer names (like more than 20 characters or so) _bleio starts acting strange.
No real error message at a specific point but somewhere while advertising.
Can you please specify maxlen for this attribute in the documentation?

Thanks
Thomas

FriehoffT
 
Posts: 39
Joined: Wed Sep 11, 2019 7:30 am

Re: Maxlen for _bleio.Adapter.Name

by tannewt on Thu Jul 22, 2021 7:34 pm

Please file an issue. Sounds like we may want to raise an exception when the name is too long. https://github.com/adafruit/circuitpyth ... new/choose

tannewt
 
Posts: 2491
Joined: Thu Oct 06, 2016 8:48 pm

Re: Maxlen for _bleio.Adapter.Name

by FriehoffT on Fri Jul 23, 2021 2:07 am

Will do.
As I see it now, the crash / bad behavior can be observed only during the advertisement later in time.
Thomas

FriehoffT
 
Posts: 39
Joined: Wed Sep 11, 2019 7:30 am

Please be positive and constructive with your questions and comments.