FlutterBleLib icon indicating copy to clipboard operation
FlutterBleLib copied to clipboard

Error caused by isClientCreated

Open vardelean opened this issue 5 years ago • 0 comments

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!

vardelean avatar May 26 '21 01:05 vardelean