Closed robbse81 closed 1 month ago
Once the portal has connected to an Station, the portal is closed. Now, when you try to reach your device you get presented a HTTP Error 500. It would be helpful to redirect in this case e.g. to the dashbaord.
Solved.
Simply add
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){ request->redirect("/dashboard"); }).setFilter(ON_STA_FILTER);
before
server.begin();
Once the portal has connected to an Station, the portal is closed. Now, when you try to reach your device you get presented a HTTP Error 500. It would be helpful to redirect in this case e.g. to the dashbaord.