add enabled boolean

This commit is contained in:
Sacha Weatherstone 2022-08-06 21:27:21 +10:00
parent a8c022fb71
commit 5b2162bf73
No known key found for this signature in database
GPG key ID: 7AB2D7E206124B31

View file

@ -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;
}
/*