I have 2 ESPs that are required to be in AP+STA mode. Let's call them ESP-1 and ESP-2.
ESP-1's STA is connected to ESP-2's AP. The picture below makes this clear:
Here, ESP-1's STA IP is 192.168.4.2 while its AP's IP is 192.168.4.1(local to ESP-1)
ESP2's AP IP is 192.168.4.1
I am trying to send UDP packets to ESP-2's AP(192.168.4.1:2000) from ESP-1(192.168.4.2), but am unable to.
I believe this is due to ESP-1 resolving 192.168.4.1 to itself, whereas it should(ideally in this context) resolve 192.168.4.1 to ESP-2.
Any thoughts on how I could send data out to ESP-2? Any help/feedback appreciated.
Regards,
Nikhil