Commit 4630a82f authored by Jerome Courat's avatar Jerome Courat

Fixed SoftAP startup and info

parent 8d0b536d
......@@ -15,14 +15,23 @@ void setup_wifi()
Serial.println("Wifi settings...");
Serial.print("AP?");
Serial.println(wifi_settings.wifi_ap_active);
if (wifi_settings.wifi_ap_active == true)
if (wifi_settings.wifi_ap_active == true)
{
Serial.print("Setting up Soft AP: ");
Serial.println(wifi_settings.wifi_ap_ssid);
IPAddress myIP = WiFi.softAP(wifi_settings.wifi_ap_ssid.c_str(),
wifi_settings.wifi_ap_pwd.c_str());
Serial.print("IP Address: ");
Serial.println(myIP);
if (WiFi.softAP(wifi_settings.wifi_ap_ssid.c_str(),
wifi_settings.wifi_ap_pwd.c_str())) {
Serial.println("SoftAP startup succeeded.");
Serial.print("AP IP Address:");
Serial.println(WiFi.softAPIP());
Serial.print("AP SSID:");
Serial.println(WiFi.softAPSSID());
Serial.print("AP Password:");
Serial.println(WiFi.softAPPSK());
}
else {
Serial.println("SoftAP startup failed.");
}
}
Serial.print("STA?");
Serial.println(wifi_settings.wifi_sta_active);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment