Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By phods
#38573 Hello everyone,
I need to make communication below:

ESP01 --> ROUTER --> ESP02

I created the ESP01 as a server, it is writing a string "Test" using the command AT + CIPSEND , if I access with the notebook browser the ip of the ESP01, I can see msg "Test", but i dont get by ESP2 , I not found any example of a sketch. how I do?

Regards,
User avatar
By WereCatf
#38582
phods wrote:I created the ESP01 as a server, it is writing a string "Test" using the command AT + CIPSEND , if I access with the notebook browser the ip of the ESP01, I can see msg "Test", but i dont get by ESP2 , I not found any example of a sketch. how I do?


You need to have the "ESP2" make a HTTP-request to the "ESP1." See e.g. https://github.com/adafruit/Adafruit_ES ... client.ino for an example of how to make a web-client with it and adapt the code to your environment.
User avatar
By phods
#40340 Finally I managed to communicate ESP->ROUTER-> ESP with code AT below:

Code: Select allAT+RST
AT+CWMODE=1
AT+CWDHCP=1,0
AT+CIPSTA=ESP_IP,ESP_GATE,ESP_IPMASK //STORED IN THE FLASH
AT+CWJAP="ESP_SSID","ESP_PASS",1,0
AT+CIPMUX=1
AT+CIPSERVER=1,ESP_PORT
AT+CIPSTART="TCP","ESP_IPSERVER",ESP_PORT
AT+CIPSEND= LENGTH
>TEXT
AT+CIPCLOSE