You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val char = connection.getServiceCharacteristic(characteristic)!!
connection.readCharacteristic(char).value!!privatesuspendfun GattConnection.getServiceCharacteristic(
characteristic:String,
): BluetoothGattCharacteristic? {
if (mockController.isMocksEnabled) {
returnBluetoothGattCharacteristic(characteristic.asUUID(), 0, 1)
}
val characteristicUUID = characteristic.asUUID()
return discoverServices()
.firstNotNullOfOrNull { service ->
service.characteristics.firstOrNull { it.uuid == characteristicUUID }
}
}
[DefaultDispatcher-worker-8] - read error com.beepiz.bluetooth.gattcoroutines.OperationFailedException:
com.beepiz.bluetooth.gattcoroutines.OperationFailedException: status: 128
at com.beepiz.bluetooth.gattcoroutines.GattConnectionImpl.readCharacteristic(GattConnectionImpl.kt:491)
at com.beepiz.bluetooth.gattcoroutines.GattConnectionImpl$readCharacteristic$1.invokeSuspend(Unknown Source:15)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
it is throwing exception as com.beepiz.bluetooth.gattcoroutines.OperationFailedException: status: 128
and it is happening only on Android 14 devices(checked with multiple) but working fine with all other devices. What could be wrong ? Permissions are also granted
The text was updated successfully, but these errors were encountered:
When I try to read characteristics as
it is throwing exception as com.beepiz.bluetooth.gattcoroutines.OperationFailedException: status: 128
and it is happening only on Android 14 devices(checked with multiple) but working fine with all other devices. What could be wrong ? Permissions are also granted
The text was updated successfully, but these errors were encountered: