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.33k stars 1.23k forks source link

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

Open andrew203 opened 10 months ago

hcyAndroid commented 8 months ago

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