From b99a0343a8e26609431e50c003b07ecba02e2e6d Mon Sep 17 00:00:00 2001 From: GUVWAF Date: Sat, 10 Feb 2024 12:38:35 +0100 Subject: [PATCH] StoreForward: replace "empty" by "text" and improve comments --- meshtastic/storeforward.options | 1 + meshtastic/storeforward.proto | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 meshtastic/storeforward.options diff --git a/meshtastic/storeforward.options b/meshtastic/storeforward.options new file mode 100644 index 0000000..8580aab --- /dev/null +++ b/meshtastic/storeforward.options @@ -0,0 +1 @@ +*StoreAndForward.text max_size:237 \ No newline at end of file diff --git a/meshtastic/storeforward.proto b/meshtastic/storeforward.proto index 425edf9..a9a83db 100644 --- a/meshtastic/storeforward.proto +++ b/meshtastic/storeforward.proto @@ -130,12 +130,12 @@ message StoreAndForward { bool heartbeat = 7; /* - * Is the heartbeat enabled on the server? + * Maximum number of messages the server will return. */ uint32 return_max = 8; /* - * Is the heartbeat enabled on the server? + * Maximum history window in minutes the server will return messages from. */ uint32 return_window = 9; } @@ -155,7 +155,8 @@ message StoreAndForward { uint32 window = 2; /* - * The window of messages that was used to filter the history client requested + * Index in the packet history of the last message sent in a previous request to the server. + * Will be sent to the client before sending the history and can be set in a subsequent request to avoid getting packets the server already sent to the client. */ uint32 last_request = 3; } @@ -165,7 +166,7 @@ message StoreAndForward { */ message Heartbeat { /* - * Number of that will be sent to the client + * Period in seconds that the heartbeat is sent out that will be sent to the client */ uint32 period = 1; @@ -200,8 +201,8 @@ message StoreAndForward { Heartbeat heartbeat = 4; /* - * Empty Payload + * Text from history message. */ - bool empty = 5; + bytes text = 5; } -} +} \ No newline at end of file