Merge pull request #149 from meshtastic/LocalConfig

Define a new object to hold all of our nested config.
pull/150/head
Thomas Göttgens 2022-05-21 20:48:55 +02:00 zatwierdzone przez GitHub
commit 30584d8498
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 33 dodań i 6 usunięć

Wyświetl plik

@ -144,7 +144,7 @@ message Config {
uint32 position_broadcast_secs = 1;
/*
* We should send our position this often (but only if it has changed significantly)
* Disable adaptive position braoadcast, which is now the default.
*/
bool position_broadcast_smart_disabled = 2;
@ -155,11 +155,6 @@ message Config {
*/
bool fixed_position = 3;
/*
* Should we disbale location sharing with other nodes (or the local phone)
*/
bool location_share_disabled = 4;
/*
* Should the GPS be disabled for this node?
*/

Wyświetl plik

@ -5,6 +5,7 @@ option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";
import "channel.proto";
import "config.proto";
import "mesh.proto";
option java_outer_classname = "DeviceOnly";
@ -135,3 +136,34 @@ message OEMStore {
string oem_text = 5;
}
message LocalConfig {
/*
* TODO: REPLACE
*/
Config.DeviceConfig device = 1;
/*
* TODO: REPLACE
*/
Config.PositionConfig position = 2;
/*
* TODO: REPLACE
*/
Config.PowerConfig power = 3;
/*
* TODO: REPLACE
*/
Config.WiFiConfig wifi = 4;
/*
* TODO: REPLACE
*/
Config.DisplayConfig display = 5;
/*
* TODO: REPLACE
*/
Config.LoRaConfig lora = 6;
}