mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Provision compression portnum & message
This commit is contained in:
parent
045d7d1ca7
commit
a69ec493e0
2 changed files with 21 additions and 1 deletions
16
mesh.proto
16
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue