Skip to content

Commit

Permalink
Compressed vs uncompressed variants
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Feb 2, 2024
1 parent b171a4d commit cbc9402
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
6 changes: 4 additions & 2 deletions meshtastic/mesh.options
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
# MyMessage.name max_size:40
# or fixed_length or fixed_count, or max_count


#This value may want to be a few bytes smaller to compensate for the parent fields.
*Compressed.data max_size:237

Expand All @@ -57,4 +56,7 @@

*MqttClientProxyMessage.topic max_size:60
*MqttClientProxyMessage.data max_size:435
*MqttClientProxyMessage.text max_size:435
*MqttClientProxyMessage.text max_size:435

*TAK_Packet.callsign_variant.uncompressed max_size:64
*TAK_Packet.callsign_variant.compressed max_size:64
15 changes: 12 additions & 3 deletions meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1525,19 +1525,28 @@ message DeviceMetadata {
*/
message TAK_Packet
{
string call_sign = 1;
oneof callsign_variant {
/*
* Uncompressed callsign from ATAK
*/
string uncompressed = 1;
/*
* Compressed callsign using unishox2 for the wire
*/
string compressed = 2;
}
/*
* The payload of the packet
*/
oneof payload_variant {
/*
* TAK position report
*/
TAK_PLI tak_pli = 2;
TAK_PLI tak_pli = 3;
/*
* Other binary data
*/
bytes data = 3;
bytes data = 4;
}
}
/*
Expand Down

0 comments on commit cbc9402

Please sign in to comment.