Skip to content

Commit

Permalink
Merge pull request meshtastic#141 from mc-hamster/location
Browse files Browse the repository at this point in the history
Add compressed payload variant
  • Loading branch information
mc-hamster authored Apr 13, 2022
2 parents 6ff1152 + 021d947 commit 870a62b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions mesh.options
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# 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
*Data.payload_compressed max_size:237
*Data.payloadVariant anonymous_oneof:true

# Big enough for 1.2.28.568032c-d
*MyNodeInfo.firmware_version max_size:18
Expand Down
16 changes: 12 additions & 4 deletions mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -638,10 +638,18 @@ message Data {
*/
PortNum portnum = 1;

/*
* TODO: REPLACE
*/
bytes payload = 2;
oneof payloadVariant {

/*
* TODO: REPLACE
*/
bytes payload = 2;

/*
* TODO: REPLACE
*/
bytes payload_compressed = 10;
}

/*
* Not normally used, but for testing a sender can request that recipient
Expand Down

0 comments on commit 870a62b

Please sign in to comment.