mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Add router to MyNodeInfo
This commit is contained in:
parent
e94b250143
commit
ef81149330
2 changed files with 20 additions and 5 deletions
10
mesh.options
10
mesh.options
|
|
@ -18,6 +18,13 @@
|
|||
|
||||
*MyNodeInfo.region max_size:12
|
||||
|
||||
*MyNodeInfo.air_period_tx max_count:24
|
||||
*MyNodeInfo.air_period_rx max_count:24
|
||||
|
||||
*MyNodeInfo.router max_count:4
|
||||
*MyNodeInfo.router_snr max_count:4
|
||||
*MyNodeInfo.router_sec max_count:4 int_size:16
|
||||
|
||||
# Note: the actual limit (because of header bytes) on the size of encrypted payloads is 251 bytes, but I use 256
|
||||
# here because we might need to fill with zeros for padding to encryption block size (16 bytes per block)
|
||||
*MeshPacket.encrypted max_size:256
|
||||
|
|
@ -36,6 +43,3 @@
|
|||
|
||||
# MyMessage.name max_size:40
|
||||
# or fixed_length or fixed_count, or max_count
|
||||
|
||||
*MyNodeInfo.air_period_tx max_count:24
|
||||
*MyNodeInfo.air_period_rx max_count:24
|
||||
|
|
|
|||
15
mesh.proto
15
mesh.proto
|
|
@ -1212,9 +1212,20 @@ message MyNodeInfo {
|
|||
float air_util_tx = 20;
|
||||
|
||||
/*
|
||||
* TODO: REPLACE
|
||||
* FIXME - add more useful debugging state (queue depths etc)
|
||||
* How many routers are we in range of?
|
||||
*/
|
||||
repeated uint32 router = 21;
|
||||
|
||||
/*
|
||||
* What is the snr of the last router message?
|
||||
*/
|
||||
repeated float router_snr = 22;
|
||||
|
||||
/*
|
||||
* How long has it been since we last heard from the router?
|
||||
*/
|
||||
repeated uint32 router_sec = 23;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue