Chat freely about anything...

User avatar
By Ashutosh choudhary
#32444 So, I have three ESPs (let's call it A, B, and C). All the three are connected in STATIONAP mode.
The first ESP (ESP A) connects to my Wifi router and broadcasts Net-A.
The second ESP (ESP B) connects to Net-A and broadcasts Net-B.
The third ESP (ESP C) connects to Net-B and brodcasts Net-C.
All these ESPs are connected in a series. I've been able to achieve this.

The IP that ESP A gets is assigned by my router. The ESP B gets IP from ESP A. And ESP C gets IP from ESP B.

I would like to program the ESP C to get the IP from ESP A instead of ESP B. But ESP C is not in direct range of ESP A. Is there a way to do it? Basically, I would like ESP B to act like a bridge for ESP A and C. Is this possible?

The idea is to control the GPIO pins of the ESP by staying connected to my Wifi router.

I have tried disabling DHCP for ESP B, but still no success.
Attachments
12192714_10153752077696934_688906433_o.jpg
User avatar
By trendchaster
#32451 Hello Ashutosh choudhary ,
Me too working on same concept to connect 3 - 4 devices for communication.But i cant find any suitable way for programming.Can you provide me the sample code or guide me to program for this devices.
User avatar
By Me-no-dev
#32489 So you basically want is ESP=A to be ale to talk to ESP-C correct? That means that you have to act a router and the ESP can not do that thing. You ca proxy stuff from A to C through B though, if you set particular ports for that. Then wha A want to say something to C it will call B to relay the message to A
That is since as far as I remember UDB broadcasts do not go through the AP network, else at the starting point you can send a broadcast that every listener but not target can relay to is AP clients