Compression protobuf changes

Rename COMPRESSION_APP to TEXT_MESSAGE_COMPRESSED_APP and flatten the payload variant to get rid of payload compressed
This commit is contained in:
Jm Casler 2022-05-23 21:03:32 -07:00
parent 982fb13718
commit 7625699203
2 changed files with 10 additions and 17 deletions

View file

@ -557,18 +557,10 @@ message Data {
*/
PortNum portnum = 1;
oneof payloadVariant {
/*
* TODO: REPLACE
*/
bytes payload = 2;
/*
* TODO: REPLACE
*/
bytes payload_compressed = 10;
}
/*
* TODO: REPLACE
*/
bytes payload = 2;
/*
* Not normally used, but for testing a sender can request that recipient

View file

@ -75,6 +75,12 @@ enum PortNum {
*/
ADMIN_APP = 6;
/*
* Compressed TEXT_MESSAGE payloads.
*/
TEXT_MESSAGE_COMPRESSED_APP = 7;
/*
* Provides a 'ping' service that replies to any packet it receives.
* Also serves as a small example module.
@ -119,11 +125,6 @@ enum PortNum {
*/
ZPS_APP = 68;
/*
* Compressed payloads.
*/
COMPRESSION_APP = 69;
/*
* Private applications should use portnums >= 256.
* To simplify initial development and testing you can use "PRIVATE_APP"