-->
Page 5 of 9

Re: P2P: ESP in AP mode and ESP in STA mode not working

PostPosted: Thu Mar 31, 2016 3:13 am
by poohjangnim
Martinayotte, I also, tried your code using http. It is real slow. You suggest TCP connect, is there any code there that code help us.

Re: P2P: ESP in AP mode and ESP in STA mode not working

PostPosted: Thu Mar 31, 2016 8:08 am
by martinayotte
Yes, to get it faster and avoid all the HTTP transaction, you can use simple TCPServer and TCPClient, connect, send keyword for commands, parse by the server, executed and replied, client waiting for this reply and then disconnect.

For sample code, you can look in the same MyAPServer sketch, it has a Telnet TCPServer running there on port 23, along the HTTPServer, that is a good starting point.

Re: P2P: ESP in AP mode and ESP in STA mode not working

PostPosted: Thu Mar 31, 2016 7:26 pm
by poohjangnim
Thanks a lot . I'll try to change your code. You really help me a lot...many thanks.

Re: P2P: ESP in AP mode and ESP in STA mode not working

PostPosted: Thu Mar 31, 2016 8:38 pm
by martinayotte
You're welcome ...

Your quickest test would be that the MyAPClient sketch would send a existing Telnet command to MyAPServer such as "showip". If the client receive the answer, than you will understand the whole messaging process.