Skip to content

2.3.0

Latest

Choose a tag to compare

@LennartHennigs LennartHennigs released this 09 May 17:05

What's Changed

Bug Fixes

  • Fixed #79: removed deprecated client.flush() call from ESP32 branch of ESPTelnetBase::flush()
  • Fixed #80: reworked TelnetStreamExample to 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 AnsiExample and DebugMacroExample (|| → &&)
  • Fixed ESPTelnetStream::read() and peek() to return -1 when not connected (Arduino Stream contract)
  • Fixed last_status_check initialization to prevent spurious keep-alive check on first boot
  • Fixed DEBUG_TEL_VAR macro which hardcoded telnet instead of honouring the DEBUG_TELNET define
  • 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, and STREAM_NO_DATA constants to ESPTelnetBase.h
  • Added input buffer length guard in ESPTelnet::handleInput() (capped at MAX_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 to showCursor(bool show)
  • Changed EscapeCodes text-wrapping methods to accept const String&
  • Changed getClient() to return const TCPClient&
  • Changed isLineModeSet() and getNewlineCharacter() to const methods
  • Changed callback member initialization from NULL to nullptr
  • Removed stale commented-out << operator from ESPTelnetStream.h

Full Changelog: https://github.com/LennartHennigs/ESPTelnet/blob/main/CHANGELOG.md