Megan Guo

Results 3 comments of Megan Guo

bleconnecter writeCharacteristic 之后 mBluetoothGatt.writeCharacteristic这之前加 if (isWriteWithNoResponse){ mCharacteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE); }else { mCharacteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT); }

private suspend fun initBleMTU(bleDevice: BleDevice): Boolean { val MAX_MTU = 180 return withContext(Dispatchers.IO) { suspendCoroutine { continuation -> BleManager.getInstance() .setMtu(bleDevice, MAX_MTU, object : BleMtuChangedCallback() { override fun onSetMTUFailure(exception: BleException) {...

想让输入框吸附在键盘上,用bottompop适配有问题。有什么好方案吗