RadiantPi.Telnet 2.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package RadiantPi.Telnet --version 2.1.1                
NuGet\Install-Package RadiantPi.Telnet -Version 2.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RadiantPi.Telnet" Version="2.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RadiantPi.Telnet --version 2.1.1                
#r "nuget: RadiantPi.Telnet, 2.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RadiantPi.Telnet as a Cake Addin
#addin nuget:?package=RadiantPi.Telnet&version=2.1.1

// Install RadiantPi.Telnet as a Cake Tool
#tool nuget:?package=RadiantPi.Telnet&version=2.1.1                

RadiantPi.Telnet

TelnetClient simplifies working with Telnet connections. The library is platform agnostic and works on Windows or Linux, including on a Raspberry Pi.

Run the dotnet command from your project folder to add the RadiantPi.Telnet assembly:

dotnet add package RadiantPi.Telnet

Find a description of the latest changes in the release notes.

Sample: Hello Trinnov

Use TelnetClient to connect to an Trinnov Altitude processor.

using System;
using RadiantPi.Telnet;

// initialize client
using TelnetClient client = new("192.168.1.180", 44100);

// register server connection validation
client.ValidateConnectionAsync = async (client, reader, writer) => {
    var handshake = await reader.ReadLineAsync() ?? "";

    // the Trinnov Altitude sends a welcome text to identify itself
    if(!handshake.StartsWith("Welcome on Trinnov Optimizer (", StringComparison.Ordinal)) {
        throw new NotSupportedException("Unrecognized device");
    }

    // announce client
    await writer.WriteLineAsync("id radiant_pi_telnet");
};

client.MessageReceived += delegate (object? sender, TelnetMessageReceivedEventArgs args) {
    Console.WriteLine($"Received: {args.Message}");
};

Console.WriteLine("Open connection");
await client.ConnectAsync();

Console.WriteLine("Press ENTER to exit.");
Console.ReadLine();

License

This application is distributed under the GNU Affero General Public License v3.0 or later.

Copyright (C) 2020-2022 - Steve G. Bjorg

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on RadiantPi.Telnet:

Package Downloads
RadiantPi.Sony.Cledis

Communication client for Sony C-LED (Cledis)

RadiantPi.Trinnov.Altitude

Communication client for Trinnov Altitude

RadiantPi.Kaleidescape

Communication client for Kaleidescape

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.0 1,245 2/17/2022
2.1.1 559 2/17/2022
2.1.0 447 2/17/2022
2.0.1 1,062 2/15/2022
2.0.0 439 2/15/2022
1.0.0 571 10/27/2021