From 76256992039d07aa0d7bdf5f501cb46df54cbfea Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Mon, 23 May 2022 21:03:32 -0700 Subject: [PATCH] Compression protobuf changes Rename COMPRESSION_APP to TEXT_MESSAGE_COMPRESSED_APP and flatten the payload variant to get rid of payload compressed --- mesh.proto | 16 ++++------------ portnums.proto | 11 ++++++----- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/mesh.proto b/mesh.proto index e71b603..4f1062a 100644 --- a/mesh.proto +++ b/mesh.proto @@ -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 diff --git a/portnums.proto b/portnums.proto index b074c97..a1198f4 100644 --- a/portnums.proto +++ b/portnums.proto @@ -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"