BLE MTU Payload Calculator

BLE MTU Payload Calculator

animation
bluetooth
ble
Try Keep Negotiated MTU (bytes) at 23 and add CO2 level (2B uint16) under Payload fields.
Observe The default fields total 19 bytes, leaving 1 byte of the 20-byte payload capacity. Adding CO2 makes the payload exceed that capacity by 1 byte.
Explain The tool adds the byte sizes of Payload fields and compares the sum with Negotiated MTU (bytes) minus the ATT header.

Technical boundaries. The calculation assumes the listed field sizes and a fixed 3-byte ATT header, with MTU choices of 23, 65, 128, 185 and 247 bytes. It does not perform MTU negotiation or send packets.

NoteTry It: BLE MTU Payload Calculator

Build your sensor payload by toggling fields on/off. See if your total fits within the default BLE MTU or if you need to negotiate a larger one.

Back to the chapter