getMaximumWriteLength method
获取当前连接可写入的最大字节数。
参数:
deviceId:已连接设备标识,无默认值。withoutResponse:是否按无响应写计算,默认true。吞吐优先推荐true;需要 每包确认时传false。Android 当前按已知 MTU 返回mtu - 3;iOS/macOS 会区分.withoutResponse与.withResponse;Linux/Windows/Web 不公开该值,返回0。
Implementation
Future<int> getMaximumWriteLength(
String deviceId, {
bool withoutResponse = true,
}) {
throw UnimplementedError(
'getMaximumWriteLength() has not been implemented.',
);
}