ThingSet.Common
0.1.12
dotnet add package ThingSet.Common --version 0.1.12
NuGet\Install-Package ThingSet.Common -Version 0.1.12
<PackageReference Include="ThingSet.Common" Version="0.1.12" />
<PackageVersion Include="ThingSet.Common" Version="0.1.12" />
<PackageReference Include="ThingSet.Common" />
paket add ThingSet.Common --version 0.1.12
#r "nuget: ThingSet.Common, 0.1.12"
#:package ThingSet.Common@0.1.12
#addin nuget:?package=ThingSet.Common&version=0.1.12
#tool nuget:?package=ThingSet.Common&version=0.1.12
ThingSet.Net
.NET client implementation of the ThingSet protocol. Supported transports are CAN and IP. At present, only the binary wire format (CBOR) is supported.
For more information on ThingSet, see the ThingSet web site.
Installation
NuGet packages are available. Install the client and the separate package for whichever transport you require:
- for IP (TCP/UDP), ThingSet.Common.Transports.Ip
- for CAN (on Linux), ThingSet.Common.Transports.Can
Quick Start
Create a transport and client
IpClientTransport ipTransport = new IpClientTransport("mydevice", 9001);
ThingSetClient client = new ThingSetClient(ipTransport);
await client.ConnectAsync();
Get values and invoke functions
object? value = client.Get(0x100);
object? result = client.Exec(0x300, 1, 2);
Subscribe for reports
await client.SubscribeAsync((uint id, string? path, object? value) =>
{
Console.WriteLine($"Report: {path} ({id:x}): {value?.ToString()}");
});
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- System.Formats.Cbor (>= 10.0.1)
-
net8.0
- System.Formats.Cbor (>= 10.0.1)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on ThingSet.Common:
| Package | Downloads |
|---|---|
|
ThingSet.Client
ThingSet client for .NET |
|
|
ThingSet.Common.Transports.Can
CAN transport for .NET ThingSet client and server |
|
|
ThingSet.Common.Transports.Ip
IP transport for .NET ThingSet client and server |
|
|
ThingSet.Server.Common
Package Description |
|
|
ThingSet.Server
.NET ThingSet server |
GitHub repositories
This package is not used by any popular GitHub repositories.