RadiantPi.Telnet
2.1.1
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
<PackageReference Include="RadiantPi.Telnet" Version="2.1.1" />
paket add RadiantPi.Telnet --version 2.1.1
#r "nuget: RadiantPi.Telnet, 2.1.1"
// 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 | Versions 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. |
-
net6.0
- Microsoft.Extensions.Logging (>= 6.0.0)
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.