ESP8266 AT command to connect to home wifi network and serve page from Arduino

Hi,

I have connected ESP8266 to Arduino, and I want to be able to connect it to home wifi router network

I used this command AT+CWJAP="my Wifi network name","password" but it gives error ?

Did you set it to STA mode? AT+CWMODE=1 or STA+AP(AT+CWMODE=3)