Improve requestMTU() docs (#140)

* Improve requestMTU() docs

* Update Linux info
This commit is contained in:
Foti Dim
2025-02-17 08:20:43 +01:00
committed by GitHub
parent 2c0d36b9d1
commit 3170b4b77b
2 changed files with 30 additions and 1 deletions
+2 -1
View File
@@ -208,7 +208,8 @@ class UniversalBle {
}
/// Request MTU value.
/// `requestMtu` is not supported on `Linux` and `Web.
/// It will **attempt** to set the MTU (Maximum Transmission Unit) but it is not guaranteed to succeed due to platform limitations.
/// It will always return the current MTU.
static Future<int> requestMtu(String deviceId, int expectedMtu) async {
return await _bleCommandQueue.queueCommand(
() => _platform.requestMtu(deviceId, expectedMtu),