Hi. I want to make a bidirectional communication between two arudinos. I had thought about using two ESP8266s but I don't know if it is possible with the following scenario.
I have an AP at one end of the wired network and another AP at the other end. The two ESP8266 cannot be seen directly, I should connect one to an AP and the other to the other AP, but I don't know how to configure the ESP8266 or what libraries exactly to, for example, with TCP establish a bidirectional communication between them.
I moved your topic to an appropriate forum category @jjuan.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
The AP defines its own network. Two APs are two different networks and can't talk to each other. Either one has to be an AP and the other a station or both stations if they are both connected to the same router.
I clarify. The two ESP8266 would be on the same network at both ends. This is why I am wondering if bidirectional TCP communication is possible if both ESP8266s are configured as clients.
I think it contains everything you need to do what you want.
With regard to the APs, are you making the common mistake of thinking they have to have different SSIDs and passwords? Unless there's a very specific reason for them to be different they should be the same on both / all APs on the network.
Thank you so much. I think that among all of us I am clarifying ideas.
Regarding ESP-NOW, I have been researching and it is a good communication option. But I haven't found the libraries.