From de602f29b743b5c46cd0205e50719ec7fd817543 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Sun, 1 May 2022 12:38:23 +1000 Subject: [PATCH] Config rework start --- admin.proto | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/admin.proto b/admin.proto index 1f93b30..aa32b81 100644 --- a/admin.proto +++ b/admin.proto @@ -17,6 +17,92 @@ option java_outer_classname = "AdminProtos"; */ message AdminMessage { + /* + * TODO: REPLACE + */ + enum RadioConfigType { + + /* + * TODO: REPLACE + */ + ALL = 0; + + /* + * TODO: REPLACE + */ + CORE_ONLY = 1; + + /* + * TODO: REPLACE + */ + MODULE_ONLY = 2; + + /* + * TODO: REPLACE + */ + DEVICE_CONFIG = 3; + + /* + * TODO: REPLACE + */ + GPS_CONFIG = 4; + + /* + * TODO: REPLACE + */ + POWER_CONFIG = 5; + + /* + * TODO: REPLACE + */ + WIFI_CONFIG = 6; + + /* + * TODO: REPLACE + */ + DISPLAY_CONFIG = 7; + + /* + * TODO: REPLACE + */ + LORA_CONFIG = 8; + + /* + * TODO: REPLACE + */ + MODULE_MQTT_CONFIG = 9; + + /* + * TODO: REPLACE + */ + MODULE_SERIAL_CONFIG = 10; + + /* + * TODO: REPLACE + */ + MODULE_EXTNOTIF_CONFIG = 11; + + /* + * TODO: REPLACE + */ + MODULE_STOREFORWARD_CONFIG = 12; + + /* + * TODO: REPLACE + */ + MODULE_RANGETEST_CONFIG = 13; + + /* + * TODO: REPLACE + */ + MODULE_ENVIRONMENTAL_CONFIG = 14; + + /* + * TODO: REPLACE + */ + MODULE_CANNEDMSG_CONFIG = 15; + } + /* * TODO: REPLACE */ @@ -72,6 +158,11 @@ message AdminMessage { */ User get_owner_response = 9; + /* + * Send the current RadioConfig in the response to this message. + */ + RadioConfigType get_config_request = 10; + /* * Setting channels/radio config remotely carries the risk that you might send an invalid config and the radio never talks to your mesh again. * Therefore if setting either of these properties remotely, you must send a confirm_xxx message within 10 minutes.