Improved startAP() function

This commit is contained in:
Stefan Kremser
2018-04-04 16:18:15 +02:00
parent a5f1ef5582
commit bc7eabec5a

View File

@@ -362,12 +362,13 @@ void printWifiStatus() {
prnt(String(s)); prnt(String(s));
} }
void startAP(String path) { void startAP() {
startAP(path.c_str(), wifi_config_ssid.c_str(), wifi_config_password.c_str(), wifi_channel, wifi_config_hidden, wifi_config_captivePortal); startAP(wifi_config_path.c_str(), wifi_config_ssid.c_str(), wifi_config_password.c_str(), wifi_channel, wifi_config_hidden, wifi_config_captivePortal);
} }
void startAP() { void startAP(String path) {
startAP(str(W_WEBINTERFACE)); wifi_config_path = path.c_str();
startAP();
} }
void loadWifiConfigDefaults() { void loadWifiConfigDefaults() {