From 5b2162bf7329587fc2d8b32048f325251bff1b86 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Sat, 6 Aug 2022 21:27:21 +1000 Subject: [PATCH] add enabled boolean --- config.proto | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/config.proto b/config.proto index d6b2c29..85f24be 100644 --- a/config.proto +++ b/config.proto @@ -291,44 +291,43 @@ message Config { message WiFiConfig { enum WiFiMode { - - /* - * Disables WiFi (re-enables Bluetooth) - */ - Disabled = 0; - /* * This mode is used to connect to an external WiFi network */ - Client = 1; + Client = 0; /* * In this mode the node will operate as an AP (and DHCP server) */ - AccessPoint = 2; + AccessPoint = 1; /* * If set, the node AP will broadcast as a hidden SSID */ - AccessPointHidden = 3; + AccessPointHidden = 2; } /* - * If set, this node will try to join the specified wifi network and - * acquire an address via DHCP + * Enable WiFi (disables Bluetooth) */ - WiFiMode mode = 1; + boolean enabled = 1; /* * If set, this node will try to join the specified wifi network and * acquire an address via DHCP */ - string ssid = 2; + WiFiMode mode = 2; + + /* + * If set, this node will try to join the specified wifi network and + * acquire an address via DHCP + */ + string ssid = 3; /* * If set, will be use to authenticate to the named wifi */ - string psk = 3; + string psk = 4; } /*