dotintent / FlutterBleLib

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

Multiple consecutive operations in a small time frame #571

Closed mgvora closed 3 years ago

mgvora commented 3 years ago

Hi everyone,

How to reach multiple consecutive write operations in a small time frame (fastest way of writing a value)? The reaction time of the write operation is very long because I use a slider to send values. My device I want to control does not support isWritableWithoutResponse.

Any ideas?

Here is a piece of code:

await _peripheral .writeCharacteristic( 'kServiceUID', 'kOutgoingCCU', payload, true) .then((value) { }).catchError((onError) { debugPrint(onError.toString()); });