- From: Helmut Januschka via GitHub <noreply@w3.org>
- Date: Fri, 19 Jun 2026 13:56:42 +0000
- To: public-web-bluetooth-log@w3.org
Thanks, pushed new commit. 1. Renamed `getMTU()` to a synchronous `maxWriteWithoutResponseSize` attribute. It returns ATT_MTU - 3 so callers don't have to know to subtract the ATT Write Command header themselves. 2. Made it a getter that's evaluated at read time, so mutability falls out for free: there's no cached value in the spec object, and the next read after an MTU change returns the new value. 3. On top of that I added a `maxwritewithoutresponsesizechanged` event (bubbles, like `characteristicvaluechanged`) plus the `onmaxwritewithoutresponsesizechanged` handler, so apps that batch large transfers can react to an increase instead of polling. The event deliberately doesn't carry the value; listeners read the attribute, keeping a single source of truth. LMKWYT -- GitHub Notification of comment by hjanuschka Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/pull/672#issuecomment-4752178135 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 19 June 2026 13:56:43 UTC