moved nbrinfo into the mesh module

pull/341/head
uhuruhashimoto 2023-03-06 15:08:24 -05:00
rodzic 7f0c12f403
commit 4aaa9fd28e
5 zmienionych plików z 46 dodań i 58 usunięć

Wyświetl plik

@ -11,7 +11,6 @@ option swift_prefix = "";
import "meshtastic/channel.proto";
import "meshtastic/localonly.proto";
import "meshtastic/mesh.proto";
import "meshtastic/neighborinfo.proto";
/*
* This message is never sent over the wire, but it is used for serializing DB

Wyświetl plik

@ -47,4 +47,6 @@
*Compressed.data max_size:237
*Waypoint.name max_size:30
*Waypoint.description max_size:100
*Waypoint.description max_size:100
*NeighborInfo.neighbors max_count:10

Wyświetl plik

@ -1366,3 +1366,46 @@ message Compressed {
*/
bytes data = 2;
}
/*
* 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;
/*
* The node ID of the node sending info on its neighbors
*/
uint32 last_sent_by_id = 2;
/*
* Time at packet transmission (in millis, Unix epoch)
*/
fixed32 tx_time = 3;
/*
* 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;
}

Wyświetl plik

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

Wyświetl plik

@ -1,52 +0,0 @@
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;
/*
* The node ID of the node sending info on its neighbors
*/
uint32 last_sent_by_id = 2;
/*
* Time at packet transmission (in millis, Unix epoch)
*/
fixed32 tx_time = 3;
/*
* 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;
}