Skip to content

Commit

Permalink
refactor: Update NetworkManager version and fix struct initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanzyTHEbar committed Mar 30, 2024
1 parent 340c4f4 commit 764f579
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions NetworkManager/include/data/config/structs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ struct WiFiConfig_t {
channel(channel),
power(power),
adhoc(adhoc) {}

std::string name;
std::string ssid;
std::string password;
Expand Down Expand Up @@ -141,12 +142,12 @@ struct ProjectConfig_t {
wifi_tx_power(wifi_tx_power) {}

ProjectConfig_t()
: device(DeviceConfig_t()),
device_data(DeviceDataJson_t()),
mdns(MDNSConfig_t()),
networks(std::vector<WiFiConfig_t>()),
ap_network(AP_WiFiConfig_t()),
wifi_tx_power(WiFiTxPower_t()) {}
: device(),
device_data(),
mdns(),
networks(),
ap_network(),
wifi_tx_power() {}

PreferencesWiFiConfigKeys_t wifKeys;
};
Expand Down
4 changes: 2 additions & 2 deletions NetworkManager/wokwi.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[wokwi]
version = 1
elf = ".pio/build/esp32s3_debug/EasyNetworkManager-v5.2.1-esp32s3_debug-732be47-main.elf"
firmware = ".pio/build/esp32s3_debug/EasyNetworkManager-v5.2.1-esp32s3_debug-732be47-main.bin"
elf = ".pio/build/esp32s3_debug/EasyNetworkManager-v5.2.2-esp32s3_debug-340c4f4-main.elf"
firmware = ".pio/build/esp32s3_debug/EasyNetworkManager-v5.2.2-esp32s3_debug-340c4f4-main.bin"
[[net.forward]]
from = "localhost:8180"
to = "target:80"

0 comments on commit 764f579

Please sign in to comment.