Skip to content

a minimal (but real) telnet client for Arduino, actually able to login and send commands to a generic telnet server

License

Notifications You must be signed in to change notification settings

alejho/Arduino-Telnet-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-Telnet-Client

a minimal (but real) telnet client for Arduino, actually able to login and send commands to a generic telnet server.

Getting Started:

It's a normal Arduino library...so just install it and take a look at the example provided to understand how to use it!
how to install an Arduino library

Useful tips:

By default the connection is made on port 23, but you can specify a different port passing it as optional argument to the login method.

By default the answer received from the server is printed on serial port, but you can edit just the "print()" method in TelnetClient.cpp to redirect the chars received from the server as you prefer.

print

The only thing you have to configure in your sketch is the char that represent the "prompt" for the server you're connecting to:

prompt-char

for this use this function in your sketch:

prompt-char2

There are some other configuration parameters you can modify in the header file (Telnet.h). They are quite self explanatory:

param

Messing with a Mikrotik router?

For some reason I don't understand you're not the first here for this!
I didn't find an explanation for this, but the telnet server implemented on Mikrotik routers asnwers twice...not a big deal, everything works, but your output can be a little messy:

doubleprompt

Known issues:

It seems that login continuously resetting arduino many times in a short time cause problems at the Ethernet shields...it simply begin to work not properly or to not connect at all.
In this case the only solution seems to disconnect/reconnect the power supply...hope to find a solution for this.

Troubleshooting:

For any issue you want to report about this library please uncomment this macro (TNDBG) in the header file

tndbg

then post the output or your sketch in the Issues section being as specific as possible (share your code, and explain what you're trying to do!).
In general I'm very happy to receive feedback and to help people with their projects...but remember that is just an hobby for me, I'm doing it for free...so words as "please" and "thank you" are really appreciated.

About

a minimal (but real) telnet client for Arduino, actually able to login and send commands to a generic telnet server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages