Re: [web-bluetooth] API which provides the negotiated MTU is required (#383)

One thing that may be worth doing is adding a **hint** when connecting the GATT server to request a higher MTU when possible.

const device = await navigator.bluetooth.requestDevice({ filters: [{ services: [0x1234] }] });
 // Try requesting for a larger ATT MTU so that more information can be exchanged per transmission.
 const server = await device.gatt.connect({ largeMtuHint: true });

It would be up to the implementation to honor this hint as much as possible based on the platform.
On Android, it would call `mBluetoothGatt.requestMtu(512)` for instance. On macOS, it would be a no-op. Etc.

What do you think @reillyeon?

GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Thursday, 4 November 2021 13:00:33 UTC