Kotlin-BLE-Library icon indicating copy to clipboard operation
Kotlin-BLE-Library copied to clipboard

Add option to advertise multiple service UUIDs

Open philips77 opened this issue 1 year ago • 2 comments

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.

https://github.com/NordicSemiconductor/Kotlin-BLE-Library/blob/c778709fc3bed5632808fc934086695653d66fa2/core/src/main/java/no/nordicsemi/android/kotlin/ble/core/advertiser/BleAdvertisingData.kt#L53-L62

philips77 avatar Dec 21 '23 22:12 philips77

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.

JiyeHoo avatar May 29 '24 07:05 JiyeHoo

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.

philips77 avatar May 30 '24 08:05 philips77