At server side:
AT+CWMODE=3
AT+CIPMUX=1
AT+CIPSERVER=1,222
AT+CIFSR
At client side:
AT+CWMODE=3
AT+CWJAP="SERVER_SSID","SERVER_PASS"
AT+CIPMUX=1
AT+CIPSTART=2,"TCP","192.168.4.1",2222
AT+CIPSEND=2,7
When I am trying to send “AT+CIPSTART” command it showing error as “Link type error” so I couldn’t send data using “AT+CIPSEND” command to ESP which is in AP mode.
I swap the roles of both ESPs and tried above AT command but that also didn’t work in my case the connection was automatically closed when I give “AT+CIPSTART” command. I have attached the screen shots of errors.