I want to esp8266 to connect my router and host website which is in my Arduino mega, so i can use that web site in phone which is connected to my router.
And also tell me how can i control relays by that website??
you requirements are rather vauge
are you using a Mega board with an onboard ESP8266?
if not how is the ESP8266 connected to the Mega?
do you want to run a webserver on the ESP8266 to control relays on the Mega?
do you have local WiFi coverage?
if so the ESP8266 could act as a station and connect to the WiFi network
it then runs a webserver to display information and accept input etc etc
The combination of you request with the odd title of your thread is confusing, or you are confused. If you want to connect to your router, you do so as a Station, not an Access Point.
1 Like
Please rewrite your question.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.