I have been able to program my ESP8266 and make it as an access point and now I want to connect it to a router so that I can communicate through that. There is a command AT+CWJAP which connects the esp to a router but I want to program it so that it automatically gets connected and I don't have to write this command on the serial monitor.
I have connected the ESP8266 with an Arduino UNO, so I will be programming it through that and not doing it directly.