So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By ade2010
#76973 ============================================================
I have 2 esp modules. Both work on station AP mode
============================================================

============================================================
module A (in station mode) connects to a router
module A (in softAP mode) works as a tcp server

module B (in station mode) connects to module A's softAP
module B (in softAP mode) acts as a tcp server
============================================================

============================================================
sending receiving data via TCP between a device connected to the router and module A works perfectly

sending receiving data via TCP between a device connected to the module A's softAP and module A works perfectly
============================================================

============================================================
now module B connects (as station) to module A's softAP and a TCP connection is created with module A as server and module B as client. The data transfer is working. Data received from the client, by the server, is mirrored i.e if 'a' is received , 'a' is send back.
============================================================

============================================================
module B's softAP acts as a tcp server and connecting my laptop to module B's softAp as a tcp client is working as well. Data sending and receiving is working.
The problem arises when i try to send the data received via module B's softAp to module A. In the data receive callback of module B's softAP, i send the received data to module B's station TCP connection and i get erroe code (-12) which is illegal argument error. I need your help with resolving it. Once it is sorted the project will be almost done.
============================================================