requestMtu method
Requests an MTU (Maximum Transmission Unit) value for the connection.
⚠️ Note: Requesting an MTU is a best-effort operation. The final MTU is
often controlled by the OS and remote device. Returns the negotiated MTU value,
which may differ from expectedMtu. Concurrent requests for the same device
share a single negotiation.
On iOS/macOS and Linux the device's services are discovered on demand first, because the reported MTU is only meaningful once they are known (CoreBluetooth otherwise reports the default ATT MTU, 23). This is a no-op when discoverServices already ran.
See BleShieldNative.requestMtu for platform limitations and best practices.
Implementation
Future<int> requestMtu(int expectedMtu, {String? queueId}) =>
BleShieldNative.requestMtu(deviceId, expectedMtu, queueId: queueId);