Skip to content

ThingSet/ThingSet.Net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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()}");
});

About

.NET ThingSet Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%