Jasonchenlijian / FastBle

Android Bluetooth Low Energy (BLE) Fast Development Framework. It uses simple ways to filter, scan, connect, read ,write, notify, readRssi, setMTU, and multiConnection.
Apache License 2.0
5.28k stars 1.22k forks source link

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

Open andrew203 opened 7 months ago

hcyAndroid commented 5 months ago

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