Provision compression portnum & message

This commit is contained in:
Sacha Weatherstone 2022-05-10 13:39:25 +10:00
parent 045d7d1ca7
commit a69ec493e0
2 changed files with 21 additions and 1 deletions

View file

@ -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;
}

View file

@ -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"