-->
Page 1 of 1

ESP --> ROUTER --> ESP

PostPosted: Tue Jan 12, 2016 8:11 am
by phods
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,

Re: ESP --> ROUTER --> ESP

PostPosted: Tue Jan 12, 2016 9:41 am
by WereCatf
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.

Re: ESP --> ROUTER --> ESP [SOLVED]

PostPosted: Wed Feb 03, 2016 5:39 am
by phods
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