I'm using flutter_blue for Android app. I've granted all required permissions and also enabled GPS on the phone. When it starts to scan, I can see a list of Bluetooth devices, but I can't find my HC-05 Bluetooth Module. However when the HC-05 module can be found when I use my phone directly. Can anyone help me?
Here is my code for scanning:
FlutterBlue flb = _bluetoothService.getInstance();
flb
.startScan(timeout: Duration(seconds: 20), scanMode: ScanMode.lowPower)
.then((x) {
List<ScanResult> r = x as List<ScanResult>;
r.forEach((a) {
print('<<<<<');
print('${a.device.id.id}');
print(a.rssi);
});
});