From a36b31a43c53cab8e62ba04dfbb1fdcc9ecfe821 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 21 Nov 2020 08:39:38 +0800 Subject: [PATCH] add constant in support of https://github.com/meshtastic/Meshtastic-Android/issues/204 --- mesh.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mesh.proto b/mesh.proto index f06d486..8f765cd 100644 --- a/mesh.proto +++ b/mesh.proto @@ -347,6 +347,12 @@ message MeshPacket { enum Constants { Unused = 0; // First enum must be zero, and we are just using this enum to // pass int constants between two very different environments + + /** From mesh.options + note: this payload length is ONLY the bytes that are sent inside of the radiohead packet + Data.payload max_size:240 + */ + DATA_PAYLOAD_LEN = 240; } /** Full settings (center freq, spread factor, pre-shared secret key etc...)