chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
791 stars 479 forks source link

[Feature]: how to read characteristic #759

Closed hzhh110 closed 10 months ago

hzhh110 commented 10 months ago

FlutterBluePlus Version

ex.1.12

Flutter Version

ex.3.10

What OS?

All

OS Version

ex.iOS 12.3

Bluetooth Module

ESP32

What is your feature request?

Is there a way to listen in and read the message? Or do you want to set the timer to read it? var characteristics = service.characteristics; for(BluetoothCharacteristic c in characteristics) { if (c.properties.read) { print(value); } }

Logs

Is there a way to listen in and read the message? Or do you want to set the timer to read it?

var characteristics = service.characteristics;
for(BluetoothCharacteristic c in characteristics) {
if (c.properties.read) {
  print(value);
}
}