RControlLib 1.0.2

dotnet add package RControlLib --version 1.0.2
                    
NuGet\Install-Package RControlLib -Version 1.0.2
                    
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="RControlLib" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RControlLib" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="RControlLib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RControlLib --version 1.0.2
                    
#r "nuget: RControlLib, 1.0.2"
                    
#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.
#:package RControlLib@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RControlLib&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=RControlLib&version=1.0.2
                    
Install as a Cake Tool

RControlLib - Usage

// Initialize your relay card 
RelayCard card = new RelayCard("COM5");

// Set a new state (returns the read state from the card)
var state = card.SetState("00010011");

// Just switch a single relay ON (the first) [0..7]
state = card.Switch(0, true);

// Just read the state of the first card
state = card.ReadState();

// Card indices:
// 0: Broadcast (=ALL Cards)
// 1: First card
// 2: Second card
// 255: Last card
var secondState = card.ReadState(2);

// Detect how many cards are found
int count = card.DetectedCardCount;

// Read states of a set of cards (1..5)
var states = card.ReadStates(new[] { 1, 2, 3, 4, 5 });

// Taster (Relay 1 on first card [0..7]) 
// (shortly on and then off, like an impulse)
state = card.SwitchButtonState(0);

// Taster (Relay 8 on second card) 
state = card.SwitchButtonState(8, 2);
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 23 7/5/2026
1.0.1 341 7/12/2023
1.0.0 291 7/11/2023