Adafruit_ESP8266
Adafruit_ESP8266 copied to clipboard
two esp connect
hi
i want to connect to esp8266 to each other and use Arduino but i could not connect them.these are my codes what is my mistake?one of them is client and the another is server.
client:
SendToESP8266("AT+RST"); WaitForESP8266(2000); SendToESP8266("AT+CWMODE=3"); WaitForESP8266(5000); SendToESP8266("AT+CIPMUX=1"); //enable multiple connection WaitForESP8266(1000); SendToESP8266("AT+CWJAP=\"MAZ2\",\"123456789\""); WaitForESP8266(8000); Serial.println("");
server:
SendToESP8266("AT+RST"); WaitForESP8266(2000); SendToESP8266("AT+CWMODE=3"); WaitForESP8266(5000); SendToESP8266("AT+CIPMUX=1"); //enable multiple connection WaitForESP8266(1000); SendToESP8266("AT+CIPSERVER=1,8888"); //open port 9999 WaitForESP8266(3000); SendToESP8266("AT+CIPSTART=0,\"TCP\",\"192.168.4.1\",8888"); WaitForESP8266(5000);