-->
Page 1 of 1

getting error in communication between two ESP8266 modules

PostPosted: Tue Nov 26, 2019 4:19 am
by anshumantech
I am trying to establish communication between two esp8266 modules (One is in SoftAP mode and other is in station mode) using AT commands in RelaTerm software on PC. I tried following commands:

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.