尝试使用DFU时如何获取iOS的正确蓝牙设备ID?

时间:2019-06-27 18:56:28

标签: flutter bluetooth

FlutterNordicDfu.startDfu在iOS上不起作用,但在Android上。我相信这是由于iOS使用UUID而不是Android这样的MAC地址所致。

FlutterNordicDfu.startDfu(device.id.id,'assets/file.zip',
        fileInAsset: true,
        enableUnsafeExperimentalButtonlessServiceInSecureDfu: true,
        progressListener:
        DefaultDfuProgressListenerAdapter(onProgressChangedHandle: (
            deviceAddress,
            percent,
            speed,
            avgSpeed,
            currentPart,
            partsTotal,
            ) {
          print('deviceAddress: $deviceAddress, percent: $percent');
        }),
      );

0 个答案:

没有答案