Captive portal redirect stop working
Closed this issue · 1 comments
Hi everybody,
maybe somebody can help me find a solution.
I have a led lamp with esp32 that start in AP mode and I control it with my phone. If I want to control it with Alexa I connect it on the LAN where Alexa is connected. Everything works well, Captive portal in AP and in Station mode is always visible and usable but I have a problem:
When I instlalled Espalexa my Captive portal redirect when connecting to AP is no more working. I think it depends on server.onNotFound function that can't work togheter with Alexa... If I use Captive's one before, Alexa won't works, if I use Alexa's one before, Captive isn't redirected when connected to AP.
Is there a way to have Alexa and the Captive portal redirect working at the same time? Since Alexa works exclusively under network and I only need the redirect in AP mode, is there a way to make espAlexa server only start in Station mode without using server.onNotFound function?
Thanks
Found the way to load Espalexa's "server.onNotFound" only in Station mode with a WiFi.getMode
;-)