dotintent / FlutterBleLib

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

Flutter App scan not showing correct devices #575

Closed patolax closed 3 years ago

patolax commented 3 years ago

I just downloaded the repo and ran the example. The image below shows Bluetooth devices found on my PC, Android, IPhone and example flutter app running on android.

As you can see flutter app is not listing LAP-00 or my IPhone. But Android device scan is not showing my Iphone not sure why that is.

Am I doing something wrong, why isnt the flutter app on android showing correct devices with the names? Is there a way to resolve this?

image

mikolak commented 3 years ago

Hi!

IIRC the example app use local name from scan result instead of peripheral name. Try modifying code in devices_bloc, method _startScan(). Also make sure that those devices are BLE. Unless your iPhone is running a GATT server and is discoverable, it won't be found by the lib.

mikolak commented 3 years ago

Closing as there're no follow ups.