AccordionQ2.WebApiClient
.NET client library for the AccordionQ2 Hardware Management REST API.
This is the .NET counterpart of the Python WebApiClient. Both libraries expose the same API surface so switching between them feels natural.
Features
- Strongly typed — full C# model classes and enums for all request/response objects
- Async-first — every method returns
TaskorTask<T>withCancellationTokensupport - Full API coverage — 9 operation groups covering all hardware management endpoints
- HttpClient integration — bring your own
HttpClient(e.g. fromIHttpClientFactory) or let the library manage one - Cross-platform — targets .NET Standard 2.0; works on .NET 5+, .NET Framework 4.6.1+, Mono, Xamarin
Quick Example
using AccordionQ2.WebApiClient;
using var client = new AccordionQ2Client("http://agent64.local:5000");
var status = await client.Connection.GetStatusAsync();
Console.WriteLine($"Connected: {status.IsConnected}");
string temp = await client.Resources.GetValueAsync("TempRegulator.CPU_TEMP");
Console.WriteLine($"CPU temperature: {temp}");
Getting Started
API Reference
- Overview — all 9 API groups at a glance
- Resources, Channels, Modules, Application, Media, Connection
- Calibration — calibration operations
- Comm (Bus Transactions) — I2C, UART, SPI, Socket
- Numeric Results — high-speed sampling
Reference
Error Handling
- Error Handling — exceptions and error patterns
Also Available
| Platform | Package |
|---|---|
| .NET Standard 2.0+ | AccordionQ2.WebApiClient via NuGet |
| Python 3.8+ | accordionq2 via pip |