connect abstract method

Future<int?> connect(
  1. String deviceId,
  2. bool isUnlock
)

连接蓝牙设备

注意连接和断开必须成对出现

deviceId 设备ID

isUnlock true 的时候初始化蓝牙设备成功之后立刻执行一次开启设备

call 回调函数

Implementation

Future<int?> connect(String deviceId, bool isUnlock);