- From: Sunbreak via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Nov 2021 11:32:20 +0000
- To: public-web-bluetooth-log@w3.org
> Hi everyone! Any news? With a ridiculous MTU fixed to 20 usable bytes on Android, there is just no way to use bluetooth of some apps. You need `requestConnectionPriority` on Android: https://github.com/woodemi/notepad_core/blob/b0e329f3d6e02f14f8a0e5e48a6ddb48e026b658/notepad_core/android/src/main/kotlin/io/woodemi/notepad_core/NotepadCorePlugin.kt#L124-L136 ```kt "requestMtu" -> { connectGatt?.requestMtu(call.argument<Int>("expectedMtu")!!) result.success(null) } "requestConnectionPriority" -> { val bleConnectionPriority = call.argument<String>("bleConnectionPriority")!! connectGatt?.requestConnectionPriority(when (bleConnectionPriority) { "high" -> BluetoothGatt.CONNECTION_PRIORITY_HIGH "lowPower" -> BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER else -> BluetoothGatt.CONNECTION_PRIORITY_BALANCED }) result.success(null) } ``` -- GitHub Notification of comment by Sunbreak Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/383#issuecomment-960685475 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 4 November 2021 11:32:22 UTC