pub const MAX_DOCUMENT_SIZE: usize = 512;
Hard limit before fragmentation would be required
BLE 5.0+ supports up to 517 byte MTU, but 512 is practical max payload.