Showing website upon connecting to a ESP32 access point?

I'm not too sure how to ask this because I don't know how it works exactly, but is it possible to show a website when a mobile connects to an ESP32? Like it serves you a website without needing the user to open web browser and input in 192.168.4.1. I think it's similar to how when you connect to a wifi at an airport, they send you to their website where you'll take a survey before providing you with internet connection?

I found this library GitHub - tzapu/WiFiManager: ESP8266 WiFi Connection manager with web captive portal. It'll scan and show every access point on a page after the user is connected to ESP32 in AP mode (didn't need to type in 192.168.4.1 in a web browser). I'm currently using GitHub - me-no-dev/ESPAsyncWebServer: Async Web Server for ESP8266 and ESP32 and I was wondering if I can do something similar and serve a custom webpage in a similar fashion as the wifimanager does.

I wasn't able to figure out how the WifiManager library does that from the code, so does anyone have any ideas?

The term you are looking for is "captive portal".

Check out

awesome, thank you so much!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.