Kotlin-BLE-Library
Kotlin-BLE-Library copied to clipboard
https://github.com/NordicSemiconductor/Kotlin-BLE-Library/blob/39923df355c4a6d43553e489f43caddbbb3537cb/core/src/main/java/no/nordicsemi/android/kotlin/ble/core/advertiser/BleAdvertisingSettings.kt#L71
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...
Please add documentation for using this library in a Jetpack Compose project for detecting iBeacons
Getting the following error on Pixel 5 ``` BLASTBufferQueue no....android.kotlin.ble.app.client E [VRI[MainActivity]#4](f:0,a:2) Faking releaseBufferCallback from transactionCompleteCallback ```
Everything locks if I try to use more that one device: ```kotlin @Test fun deadLockTwoDevices() = runBlocking { val j1 = scope.launch { repeat(5) { val c1 = ClientBleGatt.connect(InstrumentationRegistry.getInstrumentation().targetContext, address,...
#### Exception ``` W java.lang.IllegalStateException: This mutex is not locked W at kotlinx.coroutines.sync.MutexImpl.unlock(Mutex.kt:213) W at kotlinx.coroutines.sync.Mutex$DefaultImpls.unlock$default(Mutex.kt:98) W at no.nordicsemi.android.kotlin.ble.core.mutex.MutexWrapper.unlock(MutexWrapper.kt:57) W at no.nordicsemi.android.kotlin.ble.client.api.ClientMutexHandleCallback.tryEmit(ClientMutexHandleCallback.kt:32) W at no.nordicsemi.android.kotlin.ble.client.real.ClientBleGattCallback.onServicesDiscovered(ClientBleGattCallback.kt:70) W at android.bluetooth.BluetoothGatt$1$5.run(BluetoothGatt.java:347) W at...
We shouldn't set `maxSdkVersion` for these permissions, otherwise, we can't ask for this permission on SdkVersion > 30 ```xml ``` Workaround for current setup ```xml ```
Testing with 1.0.10. The following snippet scans, connects to, and monitors notifications for a couple of services on a fitness watch: ```kotlin val job = launch { val device =...
One more thing I noticed. I was memory profiling the app using Android Studio's memory profiler to verify the memory leaks and even though `ClientBleGatt` was being garbage collected correctly...
The `gatt.connect()` method which you mention has some side-effect. Have a look at this comment: https://github.com/NordicSemiconductor/Android-BLE-Library/pull/531#issuecomment-1774902392 In Android 4.3 - 13 it was changing the value of autoConnect to *true*,...