dotintent / FlutterBleLib

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

Error caused by isClientCreated #596

Open vardelean opened 3 years ago

vardelean commented 3 years ago

Hello,

I just installed flutter_ble_lib 2.3.2 in a new project, and I get an error when I try to create a client. I was using the provided example as a reference, and if I use:

final clientAlreadyExists = await bleManager.isClientCreated();

I get the following error message: The method 'isClientCreated' isn't defined for the type 'BleManager.

I can see the method is defined in 2.4.0 and the provided example is using the 2.4.0 library, but I can't get 2.4.0 via pub get, only 2.3.2. So it means I cannot use isClientCreated() as in the example provided. Is it a way around to find out if the client was already created if I uses 2.3.2?

Thank you!