Telnet Server

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
danmikro
Posts: 2
Joined: Tue Aug 17, 2021 1:36 am

Re: Telnet Server

Post by danmikro » Tue Aug 17, 2021 4:35 am

chrisgp wrote:
Wed Oct 05, 2016 5:00 am
I implemented a trivial telnet server for MicroPython/ESP8266 that will run in the background and give telnet clients access to the REPL. The code is here: https://github.com/cpopp/MicroTelnetServer

I've only tested with the mac telnet client, but to use it you just throw utelnetserver.py on your ESP8266 and add the following lines to boot.py

Code: Select all

import utelnetserver
utelnetserver.start()
and from there you should be able to telnet to your ESP8266.
Hi,

I tried implementing it any never succeed. I have stored the file into my /lib/utelnet/utelnetserver.py and tried to import it using these on boot.py

import /lib/utelnet/utelnetserver
utelnetserver.start()

Please guide me

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Telnet Server

Post by pythoncoder » Tue Aug 17, 2021 5:48 am

This

Code: Select all

import /lib/utelnet/utelnetserver
is not valid Python. I think you need to put utelnetserver.py in the root directory of your device and use the invocation recommended above:

Code: Select all

import utelnetserver
utelnetserver.start()
Peter Hinch
Index to my micropython libraries.

Post Reply