Merge pull request #353 from meshtastic/neighborinfo

make NeighborInfo switchable
This commit is contained in:
Ben Meadors 2023-06-01 06:00:28 -05:00 committed by GitHub
commit 8d17bb2452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 5 deletions

View file

@ -1,16 +1,16 @@
version: 0.1
cli:
version: 1.9.1
version: 1.10.0
plugins:
sources:
- id: trunk
ref: v0.0.15
ref: v0.0.17
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- yamllint@1.31.0
- buf-lint@1.19.0
- buf-breaking@1.19.0
- yamllint@1.32.0
- buf-lint@1.20.0
- buf-breaking@1.20.0
- actionlint@1.6.24
- markdownlint@0.34.0
- prettier@2.8.8

View file

@ -106,6 +106,11 @@ message LocalModuleConfig {
*/
ModuleConfig.RemoteHardwareConfig remote_hardware = 10;
/*
* The part of the config that is specific to the Neighbor Info module
*/
ModuleConfig.NeighborInfoConfig neighbor_info = 11;
/*
* A version integer used to invalidate old save files when we make
* incompatible changes This integer is set at build time and is private to

View file

@ -87,6 +87,22 @@ message ModuleConfig {
repeated RemoteHardwarePin available_pins = 3;
}
/*
* NeighborInfoModule Config
*/
message NeighborInfoConfig {
/*
* Whether the Module is enabled
*/
bool enabled = 1;
/*
* Interval in seconds of how often we should try to send our
* Neighbor Info to the mesh
*/
uint32 update_interval = 2;
}
/*
* Audio Config for codec2 voice
*/
@ -561,6 +577,11 @@ message ModuleConfig {
* TODO: REPLACE
*/
RemoteHardwareConfig remote_hardware = 9;
/*
* TODO: REPLACE
*/
NeighborInfoConfig neighbor_info = 10;
}
}