Darp.Fairino 0.3.0

dotnet add package Darp.Fairino --version 0.3.0
                    
NuGet\Install-Package Darp.Fairino -Version 0.3.0
                    
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="Darp.Fairino" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Darp.Fairino" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Darp.Fairino" />
                    
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 Darp.Fairino --version 0.3.0
                    
#r "nuget: Darp.Fairino, 0.3.0"
                    
#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 Darp.Fairino@0.3.0
                    
#: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=Darp.Fairino&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Darp.Fairino&version=0.3.0
                    
Install as a Cake Tool

Darp.Fairino

Darp.Fairino is a modern async .NET SDK for Fairino robot controllers. It provides typed command helpers, realtime-state feedback, dependency injection registration, and a Result<..., FairinoError> failure model for controller and transport errors.

The current SDK surface is compatible with Fairino robot software v3.9.5.

Install

dotnet add package Darp.Fairino

The package currently targets net10.0.

Quick Start

using Darp.Fairino;
using Darp.Fairino.DependencyInjection;
using Darp.Results;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
services.AddFairinoRobot();

await using ServiceProvider provider = services.BuildServiceProvider();
await using FairinoRobot robot = provider.GetRequiredService<FairinoRobot>();

Result<Success, FairinoError> connectResult = await robot.RpcAsync("192.168.58.2");
if (connectResult.TryGetError(out FairinoError? connectError))
{
    Console.WriteLine($"Connection failed: {connectError.Message}");
    return;
}

Result<SoftwareVersion, FairinoError> versionResult = await robot.GetSoftwareVersionAsync();
if (versionResult.TryGetValue(out SoftwareVersion version, out FairinoError? versionError))
{
    Console.WriteLine($"Robot model: {version.RobotModel}");
    Console.WriteLine($"Web version: {version.WebVersion}");
    Console.WriteLine($"Controller version: {version.ControllerVersion}");
}
else
{
    Console.WriteLine($"Version query failed: {versionError.Message}");
}

await robot.CloseRpcAsync();

Only connect to a reachable controller on a trusted local network.

Configuration

FairinoRobotOptions exposes SDK-level behavior only. Transport internals such as reconnect policy are managed by the SDK.

services.AddFairinoRobot(options =>
{
    options.CommandTimeout = TimeSpan.FromSeconds(30);
});

API Shape

The Fairino C# SDK manual can be used as a reference for available controller operations. In Darp.Fairino, methods are async and use an Async suffix.

Failure Model

SDK operations return operational failures as Result<..., FairinoError>. This includes robot error codes, network failures, protocol errors, timeouts, and not-connected states.

Caller cancellation throws OperationCanceledException, and invalid arguments throw the usual .NET argument exceptions.

Build

dotnet restore Darp.Fairino.slnx
dotnet build Darp.Fairino.slnx --no-restore
dotnet pack src/Darp.Fairino/Darp.Fairino.csproj --no-build

License

This project is licensed under the Apache License 2.0. See LICENSE.

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
0.3.0 108 5/25/2026
0.2.0 98 5/19/2026