Since ESP8266 can handle both AP and STA mode, can I make ESP as a router?
My idea is to pass a URL as argument to ESP through server.handle() function. Then, it use HTML code to access the given URL. Isn’t that ESP8266 can handle HTTP, Java, CSS and whatnot ?
I’ve never seen any example that shows exactly what you’re trying to do. You might want to take a look at this project that shows how to configure the ESP8266 as a Wi-Fi repeater: https://github.com/martin-ger/esp_wifi_repeater
Basically, if I understood what you’re trying to do… You can set an ESP8266 in STA mode and host a web server with the ESP8266 that handles HTTP requests. So, if you have another device with an HTML page and you interact with that page in the background it makes HTTP requests to your ESP8266.