I have 2 ESP-s, both are running in AP_STA mode.
Second ESP is connected to first ESP.
First ESP's IP details are as follows:
STA IP: 196.168.2.56 - Home wifi modem
AP IP:10.136.186.1
Second ESP's IP details are as follows:
STA IP:10.136.186.100
AP IP:10.142.194.1
I have used ping_start() function to PING the first ESP from second ESP using IP address 10.136.186.1, I just copied ip = WiFi.localIP() then made its ip[3] = 1 to reach 10.136.186.1 IP address which is first ESP's AP IP.
Ping always fails!
Otherwise I can ping home modem's IP which is 196.168.2.1 from first ESP successfully.
So, a ESP cannot ping another ESP
I'll be glad if anybody could explain the problem and the solution (if any)
Thanks.