Mbed.Cloud.SDK
1.2.2
dotnet add package Mbed.Cloud.SDK --version 1.2.2
NuGet\Install-Package Mbed.Cloud.SDK -Version 1.2.2
<PackageReference Include="Mbed.Cloud.SDK" Version="1.2.2" />
paket add Mbed.Cloud.SDK --version 1.2.2
#r "nuget: Mbed.Cloud.SDK, 1.2.2"
// 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
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)
- Install Visual Studio Community 2017 from here.
- Open Visual Studio and create a new project.
- 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.
- Go to Tools → NuGet Package Manager and select the package manager console.
- Run the following command to install the package.
PM> Install-Package Mbed.Cloud.SDK
Installation (Mac - Visual Studio Community)
- Install Visual Studio Community 2017 from here.
- Open Visual Studio and create a new solution.
- From the list of templates, select other → .Net and create a new Console Application (or anything that supports .Net 4.61).
- Go to project → Add NuGet Packages.
- Search for Mbed.Cloud.SDK and install the package.
Example Usage
Create API key in the Mbed Cloud Portal.
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 | Versions 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. |
-
- Newtonsoft.Json (>= 10.0.3)
- RestSharp (>= 105.2.3)
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