If you run sketch AutoConnectWithFSparameters all works well, but how do I trigger an "on demand Config Portal" with say a button press. If on button press I run:
WiFiManager wifiManager;
if (!wifiManager.startConfigPortal("OnDemandAP")) {
Serial.println("failed to connect and hit timeout");
delay(3000);
//reset and try again, or maybe put it to deep sleep
ESP.reset();
delay(5000);
}
then I just get the basic ssid , password web page and not my extended one with mqtt etc.