Maxlen for _bleio.Adapter.Name

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
FriehoffT
 
Posts: 56
Joined: Wed Sep 11, 2019 7:30 am

Maxlen for _bleio.Adapter.Name

Post by FriehoffT »

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

User avatar
tannewt
 
Posts: 3298
Joined: Thu Oct 06, 2016 8:48 pm

Re: Maxlen for _bleio.Adapter.Name

Post by tannewt »

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

User avatar
FriehoffT
 
Posts: 56
Joined: Wed Sep 11, 2019 7:30 am

Re: Maxlen for _bleio.Adapter.Name

Post by FriehoffT »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”