Closed fwcd closed 3 years ago
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.
Perhaps the GATTPeripheral
could offer a method to customize the advertised services as an abstraction over the raw controller?
You could build that as an extension if you want to.
Issue
Fixes #26.
What does this PR Do?
It configures the advertisement data payload to include the registered service UUIDs before starting to advertise over BLE.
Where should the reviewer start?
GATTPeripheral.swift