Chat here is you are connecting ESP-xx type modules to existing AVR based Arduino

Moderator: igrr

User avatar
By martinayotte
#44573 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.