disconnect method

Future<void> disconnect(
  1. String deviceId
)

断开 BLE 连接。

参数:

  • deviceId:设备标识,无默认值。未连接时 Android 会视为成功;iOS/macOS 找不到设备时会返回错误。

Implementation

Future<void> disconnect(String deviceId) {
  throw UnimplementedError('disconnect() has not been implemented.');
}