Provides an interface to ANT+ USB sticks available from Garmin/Dynastream. This class is used in the example projects located at the project URL.
$ dotnet add package SmallEarthTech.AntUsbStickThis package implements the Small Earth Technology ANT radio interface. It supports Garmin/Dynastream ANT USB sticks and some development boards with USB interfaces.
Important: Projects that consume this package must set the platform target to x86. This is due to the native DLLs that are a part of the package.
The easiest way to make use of the package is to add it to your DI container.
// dependency services
_host = Host.CreateDefaultBuilder().
ConfigureServices(s =>
{
...
s.AddSingleton<IAntRadio, AntRadio>();
s.AddSingleton<AntDeviceCollection>();
...
}).
Build();
This snippet makes use of the Small Earth Technology ANT+ Class Library AntDeviceCollection class and DI container constructor injection. The DI container will provide logging services and the IAntRadio implementation provided by the ANT+ USB Stick Class Library to the AntDeviceCollection.
This project requires an Open Source Maintenance Fee. While the source code is freely available under the terms of the LICENSE, all other aspects of the project--including participating in discussions and downloading releases--require adherence to the Maintenance Fee.
In short, if you use this project to generate revenue, the Maintenance Fee is required. Note that a portion of the fee sponsors other open source projects that this project uses.
To pay the Maintenance Fee, become a Sponsor.