FlutterBleLib icon indicating copy to clipboard operation
FlutterBleLib copied to clipboard

Serialize/Deserialize a Peripheral instance for a faster connection.

Open janleskovec opened this issue 5 years ago • 2 comments

My current implementation to connect to a specific BLE device is to search for the device by it's name and then connect to it. Is it possible to perform the "discovery" procedure only the first time and then serialize the Peripheral object that is generated and connect to it multiple times?

janleskovec avatar Apr 03 '20 19:04 janleskovec

Hi!

By "discovery" here you mean scanning for peripherals, right? For now it is not possible, but I'll be adding a method to obtain a peripheral from its id (UUID on iOS, MAC address on Android). I'm unable to give you a timeline though.

mikolak avatar Apr 04 '20 15:04 mikolak

Yes, that is exactly what I meant. And that is the exact feature I am looking for. Thank you. No worries on the timing, I was just wondering whether it is possible or is there an underlying limitation.

janleskovec avatar Apr 04 '20 17:04 janleskovec