Chat freely about anything...

User avatar
By Aankur
#45377 I am trying to estabish a client server connection using esp8266 through arduino Uno.
I have done the following configuations

For Server:
Connection :- SoftwareSerial esp8266(2,3);
I have connected pin2 (of arduino) to Tx (of esp8266) and pin3 (of arduino) to Rx (of esp8266).

AT+CWMODE=3
AT+CWSAP="espServer","1234567890",5,0
AT+CIPMUX=1
AT+CIPSERVER=1,80

For Client
Connection :- SoftwareSerial esp8266(2,3);
I have connected pin2 (of arduino) to Tx (of esp8266) and pin3 (of arduino) to Rx (of esp8266).

AT+CWMODE=3
AT+CWJAP="espServer","1234567890"
AT+CIPSTART="TCP","192.168.4.1",80

I am not able to estblish TCP connection.It shows

ERROR
CLOSED

Please tell me how to resolve this.
Please let me know the exact sequence of commands so as to achieve this and also the connections (in case I m doing it wrongly)
Thanks