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

Add option to advertise multiple service UUIDs #100

Open
philips77 opened this issue Dec 21, 2023 · 2 comments
Open

Add option to advertise multiple service UUIDs #100

philips77 opened this issue Dec 21, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@philips77
Copy link
Member

It is possible for a Bluetooth LE device to advertise multiple service UUIDs, both in advertise data and scan response.
Also, list of solicitation UUIDs should allow more than one UUID.

data class BleAdvertisingData(
val serviceUuid: ParcelUuid? = null,
val includeDeviceName: Boolean? = null,
val includeTxPowerLever: Boolean? = null,
val manufacturerData: List<ManufacturerData> = emptyList(),
val serviceData: List<ServiceData> = emptyList(),
@RequiresApi(Build.VERSION_CODES.M)
val serviceSolicitationUuid: ParcelUuid? = null,
)

@philips77 philips77 added the enhancement New feature or request label Dec 21, 2023
@JiyeHoo
Copy link

JiyeHoo commented May 29, 2024

In BleAdvertisetingData, serviceUuid should be of the List type,
and in BleAdvertisetingData.toNative, forEach should be added to each ServiceUuid.

'AdvertiseData.Builder()' in the system API.

@philips77
Copy link
Member Author

Hi,
I'm working on rewriting the library. The API wil change and such issues should be solved/obsolete.
I agree with your finding.

I hope the alpha version of the new lib will be available in June. I need to complete one other task in a different project, and I'll come back to BLEK.

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

No branches or pull requests

2 participants