From 8f3972e579b09c7f4682f49c609a88e9d0ee2097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Wed, 21 Dec 2022 12:49:16 +0100 Subject: [PATCH] rearrange s&f protobuf to make passing messages smaller --- storeforward.proto | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/storeforward.proto b/storeforward.proto index 7938b64..0f238d5 100644 --- a/storeforward.proto +++ b/storeforward.proto @@ -12,8 +12,8 @@ option csharp_namespace = "Meshtastic.Protobufs"; message StoreAndForward { /* - * 1 - 99 = From Router - * 101 - 199 = From Client + * 001 - 063 = From Router + * 064 - 127 = From Client */ enum RequestResponse { @@ -56,28 +56,28 @@ message StoreAndForward { /* * Client is an in error state. */ - CLIENT_ERROR = 101; + CLIENT_ERROR = 64; /* * Client has requested a replay from the router. */ - CLIENT_HISTORY = 102; + CLIENT_HISTORY = 65; /* * Client has requested stats from the router. */ - CLIENT_STATS = 103; + CLIENT_STATS = 66; /* * Client has requested the router respond. This can work as a * "are you there" message. */ - CLIENT_PING = 104; + CLIENT_PING = 67; /* * The response to a "Ping" */ - CLIENT_PONG = 105; + CLIENT_PONG = 68; /* * Client has requested that the router abort processing the client's request @@ -181,16 +181,25 @@ message StoreAndForward { /* * TODO: REPLACE */ - Statistics stats = 2; + oneof variant { + /* + * TODO: REPLACE + */ + Statistics stats = 2; - /* - * TODO: REPLACE - */ - History history = 3; + /* + * TODO: REPLACE + */ + History history = 3; - /* - * TODO: REPLACE - */ - Heartbeat heartbeat = 4; + /* + * TODO: REPLACE + */ + Heartbeat heartbeat = 4; + /* + * Empty Payload + */ + bool empty = 5; + } }