Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Host bug/limitation] OSX does not list devices with more than 18 characters in device name? #265

Open
LeeNX opened this issue Feb 9, 2025 · 2 comments

Comments

@LeeNX
Copy link
Contributor

LeeNX commented Feb 9, 2025

Seem to have discovered or tracked down by accident, that OSX seems to have a limitation of 18 characters in the device name, at least one of my running Mac with macOS version 15.3 (24D60).

I really did think I was going nuts, but testing one of the example sketches - CharacteristicsConfiguration.ino, using the device name Custom Contoller Name, would not show up in my device list on the OSX machine, but was listed in LightBlue on my Android device.

Testing by changing and uploading a small difference in the sketch, turning bluetooth on the device off for 30sec and then on and waiting for 30sec to see if the device would get listed. Also validating I could see the device in LightBlue on my Android device.

I ended up at 18 characters - Custom-Contoller-N as can be seen in the screenshot.

Image

I will try and add a note in the TroubleshootingGuide and push a PR.

@lemmingDev
Copy link
Owner

Good find!

@LeeNX
Copy link
Contributor Author

LeeNX commented Mar 4, 2025

This is actually a limitation of the Bluetooth Advertising packet size of 31 bytes - Bluetooth Advertising Packet

Less 3 bytes are occupied by the mandatory advertisement flags data., and then less bytes per advertising feature, like Advertised TX Power and/or Manufacturing data and so on.

The display name is for initial discovery and pairing, then most hosts use the characteristics Appearance with UUID 0x2a01, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants