NRuuviTag.Publisher.Http
6.0.0
See the version list below for details.
dotnet add package NRuuviTag.Publisher.Http --version 6.0.0
NuGet\Install-Package NRuuviTag.Publisher.Http -Version 6.0.0
<PackageReference Include="NRuuviTag.Publisher.Http" Version="6.0.0" />
<PackageVersion Include="NRuuviTag.Publisher.Http" Version="6.0.0" />
<PackageReference Include="NRuuviTag.Publisher.Http" />
paket add NRuuviTag.Publisher.Http --version 6.0.0
#r "nuget: NRuuviTag.Publisher.Http, 6.0.0"
#:package NRuuviTag.Publisher.Http@6.0.0
#addin nuget:?package=NRuuviTag.Publisher.Http&version=6.0.0
#tool nuget:?package=NRuuviTag.Publisher.Http&version=6.0.0
About
NRuuviTag.Http.Publisher allows NRuuviTag to publish Ruuvi sensor data to an HTTP endpoint.
More detailed documentation can be found on GitHub.
How to Use
Use the HttpPublisher class to publish samples received from an IRuuviTagListener implementation to an HTTP endpoint:
public async Task RunHttpPublisherAsync(
IRuuviTagListener listener,
IHttpClientFactory httpClientFactory,
ILoggerFactory? loggerFactory = null,
CancellationToken cancellationToken = default
) {
var options = new HttpPublisherOptions() {
Endpoint = "https://my-receiver.local",
Headers = new Dictionary<string, string>() {
["X-API-Key"] = "MY_API_KEY"
}
};
await using var publisher = new HttpPublisher(
listener,
options,
httpClientFactory,
loggerFactory?.CreateLogger<HttpPublisher>());
await publisher.RunAsync(cancellationToken);
}
In addition to specifying the endpoint URL and request headers, you can use the HttpPublisherOptions to control whether HTTP POST or PUT is used, and the maximum number of samples to send in a single request.
HTTP Client Resiliency
The publisher uses IHttpClientFactory to create HttpClient instances. It is recommended to configure the factory to use a resilient HTTP client, for example by using Microsoft.Extensions.Http.Resilience.
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Http (>= 10.0.9)
- NRuuviTag.Core (>= 6.0.0)
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 |
|---|---|---|
| 6.0.1 | 108 | 8/15/2026 |
| 6.0.0 | 120 | 7/12/2026 |
| 6.0.0-pre.3 | 72 | 7/11/2026 |
| 6.0.0-pre.2 | 75 | 7/9/2026 |
| 6.0.0-pre.1 | 71 | 7/8/2026 |
| 5.0.3 | 115 | 7/8/2026 |
| 5.0.2 | 120 | 7/8/2026 |
| 5.0.1 | 141 | 3/9/2026 |
| 5.0.0 | 145 | 1/25/2026 |
| 5.0.0-pre.3 | 93 | 1/25/2026 |
| 5.0.0-pre.2 | 93 | 12/27/2025 |
| 5.0.0-pre.1 | 131 | 12/26/2025 |
| 5.0.0-pre.0 | 174 | 11/26/2025 |