Makes MDNS optional by user setting

Makes WIFI AP optional by user setting
Tweaks ifdefs for double battery and charger settings
Updates platformio platform packages
This commit is contained in:
Paul Brand 2024-08-24 23:14:01 +02:00
parent ca07bb3b9d
commit 00e44ccf9a
6 changed files with 47 additions and 23 deletions

View file

@ -23,7 +23,9 @@ extern std::string ssid;
extern std::string password;
extern const uint8_t wifi_channel;
extern const char* ssidAP;
#ifdef WIFI_AP
extern const char* passwordAP;
#endif
// Common charger parameters
extern float charger_stat_HVcur;
@ -54,6 +56,7 @@ void init_webserver();
*/
void wifi_monitor();
#ifdef WIFI_AP
/**
* @brief Initialization function that creates a WiFi Access Point.
*
@ -62,6 +65,7 @@ void wifi_monitor();
* @return void
*/
void init_WiFi_AP();
#endif
/**
* @brief Initialization function that connects to an existing network.