Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Telnet server is implemented as ESP32 task and runs in background (when started).
When user is connected, REPL is paused and resumes after the user disconnets.
User can be disconnected from REPL by pressing Ctrl_T
|network.telnet.start([user="micro", password="python", timeout=300])||Start Telnet server.
All arguments are optional, if not set the dafaults are used.
|network.telnet.pause()||Pause Telnet server|
|network.telnet.resume()||Resume Telnet server|
|network.telnet.stop()||Stop Telnet server.
The ESP32 task is terminated, all memory is freed.
|network.telnet.status()||Get the current Telnet server status.
The status is returned as 3-item tuple of status numeric value, string description and listen IP(s) tuple
|network.telnet.stack()||Get the maximum amount of stack used by the Telnet task.
The stack size is set at compile time and can be changed in mpthreadport.h
You can use Telnet client on Linux or Putty (on Windows & Linux) to access MicroPython.