Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/207.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 飘动的蓝色罐头';找不到HC-05蓝牙模块_Android_Flutter_Bluetooth_Bluetooth Lowenergy_Hc 05 - Fatal编程技术网

Android 飘动的蓝色罐头';找不到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

我正在为Android应用程序使用Flatter_blue。我已授予所有必需的权限,并在手机上启用了GPS。当它开始扫描时,我可以看到蓝牙设备的列表,但我找不到我的HC-05蓝牙模块。但是,当我直接使用手机时,可以找到HC-05模块。有人能帮我吗

这是我的扫描代码:

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模块或其他类似的颤振库