Open philips77 opened 10 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.
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.
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