MAX_PAYLOAD_SIZE, MAX_PDU_SIZE and MAX_PACKET_SIZE are currently defined under the assumption that we support data packets with up to 255 payload bytes. This is an optional feature which we don't support yet, so using MAX_PDU_SIZE to define the radio buffer size just wastes way too much RAM.
We should probably remove constants we don't need, and define more useful values like MIN_PAYLOAD_BUF for the minimum buffer length a hardware interface has to provide to Rubble.
MAX_PAYLOAD_SIZE
,MAX_PDU_SIZE
andMAX_PACKET_SIZE
are currently defined under the assumption that we support data packets with up to 255 payload bytes. This is an optional feature which we don't support yet, so usingMAX_PDU_SIZE
to define the radio buffer size just wastes way too much RAM.We should probably remove constants we don't need, and define more useful values like
MIN_PAYLOAD_BUF
for the minimum buffer length a hardware interface has to provide to Rubble.