Skip to content

Commit

Permalink
Merge pull request #60 from mc-hamster/master
Browse files Browse the repository at this point in the history
Update MeshPacket to describe if message was delayed for S&F
  • Loading branch information
mc-hamster authored Dec 19, 2021
2 parents 26389cf + 1751cd6 commit c52c8ef
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,26 @@ message MeshPacket {
MAX = 127;
}

/*
* Identify if this is a delayed packet
*/
enum Delayed {
/*
* If unset, the message is being sent in real time.
*/
NO_DELAY = 0;

/*
* The message is delayed and was originally a broadcast
*/
DELAYED_BROADCAST = 1;

/*
* The message is delayed and was originally a direct message
*/
DELAYED_DIRECT = 2;
}

/*
* The sending node number.
* Note: Our crypto implementation uses this field as well.
Expand Down Expand Up @@ -687,6 +707,11 @@ message MeshPacket {
* rssi of received packet. Only sent to phone for dispay purposes.
*/
int32 rx_rssi = 13;

/*
* Describe if this message is delayed
*/
Delayed delayed = 15;
}

/*
Expand Down

0 comments on commit c52c8ef

Please sign in to comment.