Skip to content

Commit

Permalink
Fix data payload len to match mesh.options, also update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksville committed May 28, 2021
1 parent f604be5 commit f5b3d06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mesh.options
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit f5b3d06

Please sign in to comment.