From a69ec493e05dc7df9051d673025334072e1af38e Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Tue, 10 May 2022 13:39:25 +1000 Subject: [PATCH] Provision compression portnum & message --- mesh.proto | 16 ++++++++++++++++ portnums.proto | 6 +++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/mesh.proto b/mesh.proto index ca3fed6..c7b130d 100644 --- a/mesh.proto +++ b/mesh.proto @@ -1337,3 +1337,19 @@ message ToRadio { bool disconnect = 104; } } + +/* + * Compressed message payload + */ +message Compressed { + + /* + * PortNum to determine the how to handle the compressed payload. + */ + PortNum portnum = 1; + + /* + * Compressed data. + */ + bytes data = 2; +} diff --git a/portnums.proto b/portnums.proto index 8b37707..b074c97 100644 --- a/portnums.proto +++ b/portnums.proto @@ -32,7 +32,6 @@ enum PortNum { * A simple UTF-8 text message, which even the little micros in the mesh * can understand and show on their screen eventually in some circumstances * even signal might send messages in this form (see below) - * Formerly called CLEAR_TEXT */ TEXT_MESSAGE_APP = 1; @@ -120,6 +119,11 @@ 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"