Repository navigation
What's Changed
Bug Fixes
- Fixed #79: removed deprecated
client.flush()call from ESP32 branch ofESPTelnetBase::flush() - Fixed #80: reworked
TelnetStreamExampleto use the Stream API for command detection - Fixed #68: ESP32
flush()now properly waits for data transmission completion with timeout, matching ESP8266 behavior - Fixed #61:
stop()now properly disconnects existing clients by default - Fixed WiFi loop condition in
AnsiExampleandDebugMacroExample(||→&&) - Fixed
ESPTelnetStream::read()andpeek()to return-1when not connected (ArduinoStreamcontract) - Fixed
last_status_checkinitialization to prevent spurious keep-alive check on first boot - Fixed
DEBUG_TEL_VARmacro which hardcodedtelnetinstead of honouring theDEBUG_TELNETdefine - Fixed
EscapeCodes::cls()to emit\033[2J(clear entire screen) instead of\033[1J - Fixed
EscapeCodes::reset()to emit the conventional\033[0m
New Features
- Enhanced #63: added ESP32 Ethernet support for LAN8720 and similar wired connections via
ETH.linkUp()check - Added optional parameter to
stop(bool disconnectClient = true)to control client disconnection behavior - Added
ASCII_SPACE,ASCII_DEL,MAX_INPUT_LENGTH, andSTREAM_NO_DATAconstants toESPTelnetBase.h - Added input buffer length guard in
ESPTelnet::handleInput()(capped atMAX_INPUT_LENGTH= 512 characters) - Added
EscapeCodes::setCursorBlink(bool blink)method - Enhanced PlatformIO support with comprehensive board configurations (Arduino Nano ESP32, Wemos, M5Stack Core)
API Changes
- Renamed
EscapeCodes::showCursor(bool blink)parameter toshowCursor(bool show) - Changed
EscapeCodestext-wrapping methods to acceptconst String& - Changed
getClient()to returnconst TCPClient& - Changed
isLineModeSet()andgetNewlineCharacter()toconstmethods - Changed callback member initialization from
NULLtonullptr - Removed stale commented-out
<<operator fromESPTelnetStream.h
Full Changelog: https://github.com/LennartHennigs/ESPTelnet/blob/main/CHANGELOG.md