SendTelemetry2Hub 0.9.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SendTelemetry2Hub --version 0.9.2
NuGet\Install-Package SendTelemetry2Hub -Version 0.9.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SendTelemetry2Hub" Version="0.9.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SendTelemetry2Hub --version 0.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SendTelemetry2Hub, 0.9.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SendTelemetry2Hub as a Cake Addin #addin nuget:?package=SendTelemetry2Hub&version=0.9.2 // Install SendTelemetry2Hub as a Cake Tool #tool nuget:?package=SendTelemetry2Hub&version=0.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SendTelemetry2Hub
Send Telemetry to an Azure IoT Hub. Simple to include functionality in a Console app.
Include in a .NET project
dotnet add package SendTelemetry2Hub
Call
using SendTelemetry;
...
...
await DeviceSendTelemetryToHub.SendDeviceToCloudMessageAsync(telemetryData, connectionString);
Parameters
- telemetryData of type dynamic eg:
double currentTemperature = minTemperature + rand.NextDouble() * 15;
double currentHumidity = minHumidity + rand.NextDouble() * 20;
// Create JSON message
var telemetryData = new
{
temperature = currentTemperature,
humidity = currentHumidity
};
- connectionString of type string
- The Azure IoT Hub Device Connection string
Further
See the code repository for sample Console app where it is part of a Triggercmd app for Google Nest.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Microsoft.Azure.Devices.Client (>= 1.40.0)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SendTelemetry2Hub:
Package | Downloads |
---|---|
DNETCoreGPIO
Implements the various GPIO functionality .NET on a RPi such as LED, temperature sensor, realy and motor H-Bridge |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial uploade.