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

GATT peripheral does not advertise services #26

Closed
fwcd opened this issue Feb 14, 2021 · 1 comment
Closed

GATT peripheral does not advertise services #26

fwcd opened this issue Feb 14, 2021 · 1 comment

Comments

@fwcd
Copy link

fwcd commented Feb 14, 2021

Services added to a GATTPeripheral are discoverable once a remote central has connected, their UUIDs are, however, now included in the LE advertising payload. This causes nodes acting as a GATTPeripheral to go undiscovered if the central scans for specific service UUIDs.

@colemancda
Copy link
Member

The problems with this is that you only have 31 bytes (61 with Scan Response) to advertise services. If you are using 128 bit UUID you could use that up really fast. Also, what about manufacturer data or local name advertisement? That is why we leave it up to you to customize the advertising. This is a feature not a bug.

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

Successfully merging a pull request may close this issue.

2 participants