Microsoft.Azure.Sphere.DeviceAPI 1.1.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package Microsoft.Azure.Sphere.DeviceAPI --version 1.1.1
NuGet\Install-Package Microsoft.Azure.Sphere.DeviceAPI -Version 1.1.1
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="Microsoft.Azure.Sphere.DeviceAPI" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Azure.Sphere.DeviceAPI --version 1.1.1
#r "nuget: Microsoft.Azure.Sphere.DeviceAPI, 1.1.1"
#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 Microsoft.Azure.Sphere.DeviceAPI as a Cake Addin
#addin nuget:?package=Microsoft.Azure.Sphere.DeviceAPI&version=1.1.1

// Install Microsoft.Azure.Sphere.DeviceAPI as a Cake Tool
#tool nuget:?package=Microsoft.Azure.Sphere.DeviceAPI&version=1.1.1

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

  1. Ensure you have the .NET Runtime and SDK installed for your platform.

  2. Create a folder to contain your C# project

  3. cd to your newly created .NET project folder

  4. Create a new .NET console application: dotnet new console

  5. Install the package from nuget: dotnet add package Microsoft.Azure.Sphere.DeviceAPI

Install via Visual Studio

  1. Install Visual Studio

  2. 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.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.1.1 207 6/30/2023
1.1.0 164 4/28/2023
1.0.2 339 12/1/2022
1.0.1 322 11/23/2022
1.0.0 456 9/26/2022
0.1.1 461 7/29/2022
0.1.0 597 7/28/2022