TelnetStream - after connect, send info

I would need to print information after connecting via telnet to the arduino. Always only when connected. Don't know how to do it with this library?
Telnet Stream

Where are you stuck ?

it is not possible.
what networking library do you use on what Arduino?

After connecting via Telnet to the Arduino, I need to list what keyboard shortcuts are being used. Unfortunately, nothing is displayed after connecting.

  if (TelnetStream2.available())
  {
    TelnetStream2.println("TELNET help:");
    TelnetStream2.println("R = reboot Arduino");
    TelnetStream2.println("O = reload all data");
    TelnetStream2.println("M = reload only temperature");
    TelnetStream2.println("C = Telnet OFF");
  }

yes. a client is 'available' only after it sent something. that is how the EthernetServer and WiFiServer works and TelnetStream is just a thin wrapper around EthernetServer or WiFiServer.

and there can be more then one connected client. TelnetStream outputs to all connected clients.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.