From b1aed06442025624841b2288fac273d9bc41c438 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Fri, 12 Feb 2021 09:39:35 +0800 Subject: [PATCH] add a RELIABLE priority --- docs/docs.md | 3 ++- mesh.proto | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/docs.md b/docs/docs.md index cb09f1b..ce1a0ce 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -727,7 +727,8 @@ connected directly to the node) can set this parameter if necessary. | UNSET | 0 | Treated as Priority.DEFAULT | | MIN | 1 | | | BACKGROUND | 10 | Background position updates are sent with very low priority - if the link is super conjested they might not go out at all | -| DEFAULT | 64 | This priority is used for all messages that don't have a priority set | +| DEFAULT | 64 | This priority is used for most messages that don't have a priority set | +| RELIABLE | 70 | If priority is unset but the message is marked as want_ack, assume it is important and use a slightly higher priority | | ACK | 120 | Ack/naks are sent with very high priority to ensure that retransmission stops as soon as possible | | MAX | 127 | | diff --git a/mesh.proto b/mesh.proto index c674609..b1924d8 100644 --- a/mesh.proto +++ b/mesh.proto @@ -274,9 +274,12 @@ message MeshPacket { /* Background position updates are sent with very low priority - if the link is super conjested they might not go out at all */ BACKGROUND = 10; - /* This priority is used for all messages that don't have a priority set */ + /* This priority is used for most messages that don't have a priority set */ DEFAULT = 64; + /* If priority is unset but the message is marked as want_ack, assume it is important and use a slightly higher priority */ + RELIABLE = 70; + /* Ack/naks are sent with very high priority to ensure that retransmission stops as soon as possible */ ACK = 120;