Fix data payload len to match mesh.options, also update docs

pull/22/head
Kevin Hester 2021-05-28 10:58:51 +08:00
rodzic f604be5bb2
commit f5b3d0643b
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -9,8 +9,8 @@
*RouteDiscovery.route max_count:8
# FIXME, max out based on total Data size And do fragmentation and reassembly (for larger payloads) at the Android layer, not the esp32 layer.
# note: this payload length is ONLY the bytes that are sent inside of the radiohead packet. The 16 byte header is outside of this envelope
# note: this payload length is ONLY the bytes that are sent inside of the Data protobuf (excluding protobuf overhead). The 16 byte header is
# outside of this envelope
*Data.payload max_size:237
# Big enough for 1.2.28.568032c-d

Wyświetl plik

@ -527,10 +527,10 @@ enum Constants {
/*
* From mesh.options
* note: this payload length is ONLY the bytes that are sent inside of the radiohead packet
* Data.payload max_size:240
* note: this payload length is ONLY the bytes that are sent inside of the Data protobuf (excluding protobuf overhead). The 16 byte header is
* outside of this envelope
*/
DATA_PAYLOAD_LEN = 240;
DATA_PAYLOAD_LEN = 237;
}
/*