Android 飘动的蓝色罐头';找不到HC-05蓝牙模块
我正在为Android应用程序使用Flatter_blue。我已授予所有必需的权限,并在手机上启用了GPS。当它开始扫描时,我可以看到蓝牙设备的列表,但我找不到我的HC-05蓝牙模块。但是,当我直接使用手机时,可以找到HC-05模块。有人能帮我吗 这是我的扫描代码:Android 飘动的蓝色罐头';找不到HC-05蓝牙模块,android,flutter,bluetooth,bluetooth-lowenergy,hc-05,Android,Flutter,Bluetooth,Bluetooth Lowenergy,Hc 05,我正在为Android应用程序使用Flatter_blue。我已授予所有必需的权限,并在手机上启用了GPS。当它开始扫描时,我可以看到蓝牙设备的列表,但我找不到我的HC-05蓝牙模块。但是,当我直接使用手机时,可以找到HC-05模块。有人能帮我吗 这是我的扫描代码: FlutterBlue flb = _bluetoothService.getInstance(); flb .startScan(timeout: Duration(seconds: 20), scanMo
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);
});
});
blueflb=_bluetoothService.getInstance();
flb
.startScan(超时:持续时间(秒:20),扫描模式:扫描模式.lowPower)
.然后((x){
列表r=x为列表;
r、 forEach((a){
打印(“HC-05是一个蓝牙经典模块,而不是一个蓝牙低能(BLE)模块。这就是为什么您可以在手机操作系统中通过常规的蓝牙经典搜索找到它,而不是使用Blet_blue,一个BLE库
您必须使用BLE模块或其他类似的颤振库