Skip to content

Commit

Permalink
Merge pull request #437 from GUVWAF/storeForwardText
Browse files Browse the repository at this point in the history
StoreForward: replace "empty" by "text" and improve comments
  • Loading branch information
thebentern authored Feb 10, 2024
2 parents 68fe60f + b99a034 commit 6cb1878
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions meshtastic/storeforward.options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*StoreAndForward.text max_size:237
15 changes: 8 additions & 7 deletions meshtastic/storeforward.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;

Expand Down Expand Up @@ -200,8 +201,8 @@ message StoreAndForward {
Heartbeat heartbeat = 4;

/*
* Empty Payload
* Text from history message.
*/
bool empty = 5;
bytes text = 5;
}
}
}

0 comments on commit 6cb1878

Please sign in to comment.