Resurrect wifi_mode

but not as we knew it :-)
This commit is contained in:
Thomas Göttgens 2022-11-05 14:58:41 +01:00 committed by GitHub
parent 7e102f0f3c
commit 2954e5b022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,23 +249,6 @@ message Config {
*/
message NetworkConfig {
enum WiFiMode {
/*
* This mode is used to connect to an external WiFi network
*/
CLIENT = 0;
/*
* In this mode the node will operate as an AP (and DHCP server)
*/
ACCESS_POINT = 1;
/*
* If set, the node AP will broadcast as a hidden SSID
*/
ACCESS_POINT_HIDDEN = 2;
}
enum EthMode {
/*
* obtain ip address via DHCP
@ -304,6 +287,11 @@ message Config {
* Enable WiFi (disables Bluetooth)
*/
bool wifi_enabled = 1;
/*
* acquire an address via DHCP or assign static
*/
EthMode wifi_mode = 2;
/*
* If set, this node will try to join the specified wifi network and