Mbed.Cloud.SDK 1.2.2

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Mbed.Cloud.SDK --version 1.2.2
NuGet\Install-Package Mbed.Cloud.SDK -Version 1.2.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="Mbed.Cloud.SDK" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mbed.Cloud.SDK --version 1.2.2
#r "nuget: Mbed.Cloud.SDK, 1.2.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 Mbed.Cloud.SDK as a Cake Addin
#addin nuget:?package=Mbed.Cloud.SDK&version=1.2.2

// Install Mbed.Cloud.SDK as a Cake Tool
#tool nuget:?package=Mbed.Cloud.SDK&version=1.2.2

Mbed Cloud SDK for .Net

License CircleCI codecov

The Mbed Cloud SDK gives developers access to the full Mbed suite using .Net 4.61.

If you want to contribute to creating a SDK for another language the work is greatly appreciated and you can read more about the process here.

Installation (Windows - Visual Studio)

  1. Install Visual Studio Community 2017 from here.
  2. Open Visual Studio and create a new project.
  3. Go to Visual C# → Windows Classic Desktop and create a new Console App. Make sure the target framework is set to .Net Framework 4.6.1.
  4. Go to Tools → NuGet Package Manager and select the package manager console.
  5. Run the following command to install the package.
PM> Install-Package Mbed.Cloud.SDK

Installation (Mac - Visual Studio Community)

  1. Install Visual Studio Community 2017 from here.
  2. Open Visual Studio and create a new solution.
  3. From the list of templates, select other → .Net and create a new Console Application (or anything that supports .Net 4.61).
  4. Go to project → Add NuGet Packages.
  5. Search for Mbed.Cloud.SDK and install the package.

Example Usage

  1. Create API key in the Mbed Cloud Portal.

  2. In your project, follow the sample below:

    using MbedCloudSDK.Common;
    using MbedCloudSDK.Common.Query;
    using MbedCloudSDK.DeviceDirectory.Api;
    
    var apiKey = "<your Mbed Cloud api key>";
    // create a config object with your api key
    var config = new Config(apiKey);
    // Instantiate the Device Directory Api
    var deviceApi = new DeviceDirectoryApi(config);
    
    // Options for the query. The Limit defines the number of results returned
    var options = new QueryOptions()
    {
        Limit = 5,
    };
    
    // List devices from the Device Directory
    var devices = deviceApi.ListDevices(options).Data;
    foreach (var device in devices)
    {
        // Use the device object here
    }
    

Further examples can be viewed in the ConsoleExamples folder of this repo.

Documentation

See full documentation and API reference here.

Contributing

Mbed Cloud SDK for .Net is open source and we would like your help; there is a brief guide on how to get started in CONTRIBUTING.md.

Licence

Mbed Cloud SDK for .Net is free-to-use and licensed under the Apache License 2.0. See LICENSE file for more information.

Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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

None