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

Actually, one doesn't need to know or use the minimum of the two peers' receive MTUs. The purpose of `getMTU()` is to ensure the length of the data to be sent to peer does not exceed any of these two limits:

* The maximum size of Attribute Protocol PDU the Host can transmit (I think a properly designed Host API will report an error for this),
* The maximum size of Attribute Protocol PDU the peer can receive (Host will truncate the data silently according to the spec).

We don't need to care about the maximum size of ATT MTU that the local Host can receive when sending data.

-- 
GitHub Notification of comment by foldl
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/383#issuecomment-4646342183 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 8 June 2026 07:24:04 UTC