NordicSemiconductor / Kotlin-BLE-Library

BSD 3-Clause "New" or "Revised" License
326 stars 33 forks source link

Add option to advertise multiple service UUIDs #100

Open philips77 opened 10 months ago

philips77 commented 10 months ago

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

JiyeHoo commented 5 months ago

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 commented 5 months ago

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.