Microsoft.Azure.Sphere.DeviceAPI
1.1.2
Prefix Reserved
dotnet add package Microsoft.Azure.Sphere.DeviceAPI --version 1.1.2
NuGet\Install-Package Microsoft.Azure.Sphere.DeviceAPI -Version 1.1.2
<PackageReference Include="Microsoft.Azure.Sphere.DeviceAPI" Version="1.1.2" />
paket add Microsoft.Azure.Sphere.DeviceAPI --version 1.1.2
#r "nuget: Microsoft.Azure.Sphere.DeviceAPI, 1.1.2"
// Install Microsoft.Azure.Sphere.DeviceAPI as a Cake Addin #addin nuget:?package=Microsoft.Azure.Sphere.DeviceAPI&version=1.1.2 // Install Microsoft.Azure.Sphere.DeviceAPI as a Cake Tool #tool nuget:?package=Microsoft.Azure.Sphere.DeviceAPI&version=1.1.2
Microsoft.Azure.Sphere.DeviceAPI
Microsoft Azure Sphere Device REST APIs enables users to interact with an Azure Sphere device using REST APIs. This is useful during manufacturing operations.
Sample application
using Microsoft.Azure.Sphere.DeviceAPI;
internal class Program
{
private static void Main(string[] args)
{
string result = Devices.GetAttachedDevices();
Console.WriteLine($"Devices result: {result}");
string networks = Wifi.GetAllConfiguredWifiNetworks();
Console.WriteLine($"Wifi networks: {networks}");
}
}
Install via CLI
Ensure you have the .NET Runtime and SDK installed for your platform.
Create a folder to contain your C# project
cd
to your newly created .NET project folderCreate a new .NET console application:
dotnet new console
Install the package from nuget:
dotnet add package Microsoft.Azure.Sphere.DeviceAPI
Install via Visual Studio
Install Visual Studio
Follow the guide to add a nuget package to a Visual Studio project.
Usage
Before using Microsoft Azure Sphere Device REST APIs for CSharp, you must install the Azure Sphere SDK.
- To install the Azure Sphere SDK on Windows, follow the Windows Quickstart.
- To install the Azure Sphere SDK on Linux, follow the Linux Quickstart.
Sample
The DeviceApiSample gets the list of attached devices, displays the device IP address, and device ID.
API documentation
View the package API documentation on Github.
Supported host operating systems
- Windows 10 and 11
- Ubuntu 18.04, 20.04, 22.04
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
-
net6.0
- System.Management.Automation (>= 7.2.22)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.