rename wifi properties & remove nested config prefix

pull/148/head
Sacha Weatherstone 2022-05-07 19:11:01 +10:00
rodzic fc6436c325
commit 9d18b49e91
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7AB2D7E206124B31
3 zmienionych plików z 20 dodań i 20 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
*WiFiConfig.wifi_ssid max_size:33 *WiFiConfig.ssid max_size:33
*WiFiConfig.wifi_password max_size:64 *WiFiConfig.psk max_size:64
# Max of three ignored nodes for our testing # Max of three ignored nodes for our testing
*LoRaConfig.ignore_incoming max_count:3 *LoRaConfig.ignore_incoming max_count:3

Wyświetl plik

@ -391,18 +391,18 @@ message Config {
* If set, this node will try to join the specified wifi network and * If set, this node will try to join the specified wifi network and
* acquire an address via DHCP * acquire an address via DHCP
*/ */
string wifi_ssid = 1; string ssid = 1;
/* /*
* If set, will be use to authenticate to the named wifi * If set, will be use to authenticate to the named wifi
*/ */
string wifi_password = 2; string psk = 2;
/* /*
* If set, the node will operate as an AP (and DHCP server), otherwise it * If set, the node will operate as an AP (and DHCP server), otherwise it
* will be a station * will be a station
*/ */
bool wifi_ap_mode = 3; bool ap_mode = 3;
} }
/* /*
@ -556,7 +556,7 @@ message Config {
* Standard predefined channel settings * Standard predefined channel settings
* Note: these mappings must match ModemConfigChoice in the device code. * Note: these mappings must match ModemConfigChoice in the device code.
*/ */
enum ModemConfig { enum ModemPreset {
/* /*
* TODO: REPLACE * TODO: REPLACE
@ -610,7 +610,7 @@ message Config {
* This value is replaced by bandwidth/spread_factor/coding_rate. * This value is replaced by bandwidth/spread_factor/coding_rate.
* If you'd like to experiment with other options add them to MeshRadio.cpp in the device code. * If you'd like to experiment with other options add them to MeshRadio.cpp in the device code.
*/ */
ModemConfig modem_config = 2; ModemPreset modem_config = 2;
/* /*
* Bandwidth in MHz * Bandwidth in MHz
@ -671,32 +671,32 @@ message Config {
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
DeviceConfig device_config = 1; DeviceConfig device = 1;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
PositionConfig position_config = 2; PositionConfig position = 2;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
PowerConfig power_config = 3; PowerConfig power = 3;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
WiFiConfig wifi_config = 4; WiFiConfig wifi = 4;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
DisplayConfig display_config = 5; DisplayConfig display = 5;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
LoRaConfig lora_config = 6; LoRaConfig lora = 6;
} }
} }

Wyświetl plik

@ -395,37 +395,37 @@ message ModuleConfig {
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
MQTTConfig mqtt_config = 1; MQTTConfig mqtt = 1;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
SerialConfig serial_config = 2; SerialConfig serial = 2;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
ExternalNotificationConfig external_notification_config = 3; ExternalNotificationConfig external_notification = 3;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
StoreForwardConfig store_forward_config = 4; StoreForwardConfig store_forward = 4;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
RangeTestConfig range_test_config = 5; RangeTestConfig range_test = 5;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
TelemetryConfig telemetry_config = 6; TelemetryConfig telemetry = 6;
/* /*
* TODO: REPLACE * TODO: REPLACE
*/ */
CannedMessageConfig canned_message_config = 7; CannedMessageConfig canned_message = 7;
} }
} }