nbrinfo protobuf

This commit is contained in:
uhuruhashimoto 2023-03-05 22:35:03 -05:00
parent 33c8cf16f0
commit 56d3b15ce8
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# options for nanopb
# https://jpa.kapsi.fi/nanopb/docs/reference.html#proto-file-options
*NeighborInfo.neighbors max_count:10

View 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;
}