mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
nbrinfo protobuf
This commit is contained in:
parent
33c8cf16f0
commit
56d3b15ce8
2 changed files with 52 additions and 0 deletions
4
meshtastic/neighborinfo.options
Normal file
4
meshtastic/neighborinfo.options
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# options for nanopb
|
||||
# https://jpa.kapsi.fi/nanopb/docs/reference.html#proto-file-options
|
||||
|
||||
*NeighborInfo.neighbors max_count:10
|
||||
48
meshtastic/neighborinfo.proto
Normal file
48
meshtastic/neighborinfo.proto
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package meshtastic;
|
||||
|
||||
option java_package = "com.geeksville.mesh";
|
||||
option java_outer_classname = "NeighborInfoProtos";
|
||||
option go_package = "github.com/meshtastic/go/generated";
|
||||
option csharp_namespace = "Meshtastic.Protobufs";
|
||||
option swift_prefix = "";
|
||||
|
||||
/*
|
||||
* Full info on edges for a single node
|
||||
*/
|
||||
message NeighborInfo {
|
||||
/*
|
||||
* The node ID of the node sending info on its neighbors
|
||||
*/
|
||||
uint32 node_id = 1;
|
||||
/*
|
||||
* Time at packet transmission (in millis, Unix epoch)
|
||||
*/
|
||||
fixed32 tx_time = 2;
|
||||
|
||||
/*
|
||||
* The list of neighbors
|
||||
*/
|
||||
repeated Neighbor neighbors = 4;
|
||||
}
|
||||
|
||||
/*
|
||||
* A single edge in the mesh
|
||||
*/
|
||||
message Neighbor {
|
||||
/*
|
||||
* Node ID of neighbor
|
||||
*/
|
||||
uint32 node_id = 1;
|
||||
|
||||
/*
|
||||
* SNR of last heard message
|
||||
*/
|
||||
float snr = 2;
|
||||
|
||||
/*
|
||||
* Time of last heard message (in millis, Unix epoch)
|
||||
*/
|
||||
fixed32 rx_time = 3;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue