FastBle icon indicating copy to clipboard operation
FastBle copied to clipboard

请问一下,怎么设置write no response模式?

Open andrew203 opened this issue 1 year ago • 1 comments

andrew203 avatar Jan 27 '24 12:01 andrew203

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

hcyAndroid avatar Mar 23 '24 10:03 hcyAndroid