ServiceCode as 2-byte char

This commit is contained in:
proddy
2019-01-04 15:30:45 +01:00
parent 1f530a0430
commit 2d2ee1927d
5 changed files with 34 additions and 36 deletions

View File

@@ -481,7 +481,7 @@ void MyESP::_telnetHandle() {
while (SerialAndTelnet.available()) {
char character = SerialAndTelnet.read(); // Get character
// check for ctrl-D
// check for ctrl-D (EOF) or EOT
if ((character == 0xEC) || (character == 0x04)) {
SerialAndTelnet.disconnectClient();
}