dotintent / FlutterBleLib

Bluetooth Low Energy library for Flutter with support for simulating peripherals
Apache License 2.0
535 stars 197 forks source link

readCharacteristic's monitor return same data three times #509

Open Matrix-Zhang opened 4 years ago

Matrix-Zhang commented 4 years ago

i have a peripheral run at my phone with android gatt server api implement as a echo server

but every time send some data to the peripheral, central received the same data three times with monitor's onListen callback

i send back the data at peripheral as follows:

_characteristicRead?.value = data
_bluetoothGattServer?.notifyCharacteristicChanged(device, _characteristicRead, false)