combine wifi state into enum

pull/188/head
Sacha Weatherstone 2022-08-06 15:59:58 +10:00
rodzic cb2fb77bd8
commit 97a57ebb39
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7AB2D7E206124B31
1 zmienionych plików z 31 dodań i 18 usunięć

Wyświetl plik

@ -290,32 +290,45 @@ message Config {
*/
message WiFiConfig {
enum WiFiMode {
/*
* Disables WiFi (re-enables Bluetooth)
*/
Off = 0;
/*
* This mode is used to connect to an external WiFi network
*/
Client = 1;
/*
* In this mode the node will operate as an AP (and DHCP server)
*/
AccessPoint = 2;
/*
* If set, the node AP will broadcast as a hidden SSID
*/
AccessPointHidden = 3;
}
/*
* If set, this node will try to join the specified wifi network and
* acquire an address via DHCP
*/
string ssid = 1;
WiFiMode mode = 1;
/*
* If set, this node will try to join the specified wifi network and
* acquire an address via DHCP
*/
string ssid = 2;
/*
* If set, will be use to authenticate to the named wifi
*/
string psk = 2;
/*
* If set, the node will operate as an AP (and DHCP server), otherwise it
* will be a station
*/
bool ap_mode = 3;
/*
* If set, the node AP will broadcast as a hidden SSID
*/
bool ap_hidden = 4;
/*
* If set, wifi is enabled. Previously done through setting ssid and psk
*/
bool enabled = 5;
string psk = 3;
}
/*