Constant rubble::link::MIN_PAYLOAD_BUF[][src]

pub const MIN_PAYLOAD_BUF: usize = 37;
Expand description

Min. size a PDU payload buffer must have (to cover both advertising and data channels).

The Advertising PDU header has a length field that is limited to 37 octets, while data channel PDUs in Bluetooth 4.0 and 4.1 only have a 5-bit length field, limiting the user payload to 27 octets (after subtracting the optional 4-Byte MIC). Bluetooth 4.2 added the optional Packet Length Extension, which allows data channel PDUs containing up to 251 user payload bytes, however Rubble doesn’t support that yet.