martinayotte wrote:AlexPilk wrote:Any ideas why ESP_STA fails to connect to ESP_AP, but works well with a separate router?
I've done some tests more than a month ago, because someone had such problem too. I've written simple MyAPServer and MyAPClient sketch, and it was working without any problem. So, in your case, you need to troubleshoot why your STA isn't able to connect to AP. Are your sure that your STA is really in STA only and not in AP+STA mode ? Because in such case, there will be routing problems where packets of your STA will be routed to itself if you have another AP on it.
Turned off the AP module and tested the STA alone, didn't see any suspicious SSIDs from my phone. I added "WiFi.mode(WIFI_STA)" before "WiFi.begin()". It however prints the IP address after connecting, so it is does connect in the beginning, but you can't ping or access it (AP ip is 192.168.4.1, STA gets 192.168.4.2)