bleUnlock method

dynamic bleUnlock(
  1. String deviceId, {
  2. bool isVibrate = false,
})

开启指定设备 deviceId代表开启指定设备

Implementation

bleUnlock(String deviceId, {bool isVibrate = false}) async {
  try {
    final map = {"deviceId": deviceId};
    var rtn = await methodChannel.invokeMethod("bleUnlock", map);
    if (isVibrate) Vibrate().start();
    return rtn;
  } catch (e) {
    rethrow;
  }
}