Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By helpme
#27076 I just discovered a wonderful feature added to SMING. The HardwareSerial UART port can now do command processing through the CommandProcessing service by running
Code: Select allSerial.commandProcessing(true);
Is it possible to do the same thing for a TCP server? It looks like a good feature to have.
User avatar
By helpme
#27138
hreintke wrote:LS,
For TCP the CommandProcessor is implemented in TelnetServer.
See application Telnet_TCPServer_TCPClient for example usage.


Thanks. I was hoping that TCPserver can do the same like TelnetServer and UART. Maybe something like
Code: Select allTCPServer.commandProcessing(true);


Can something similar be done?
User avatar
By hreintke
#27437 LS,
I think conceptually you are right.
Now the commandprocessor is implemented in telnetserver which is derived from tcpserver.
It could also be part of the baseclass tcpserver and be switched on/off with specific class functions.

I'll check into it but don't expect a very short time solution due to other activities