Giter VIP home page Giter VIP logo

mbed-cloud-sdk-dotnet's Introduction

Pelion Device Management SDK for .NET

No Maintenance Intended


Due to a redirected focus onto future development of the Pelion Device Management APIs, this SDK Is no longer actively supported and there is no commitment for future maintenance releases.

The open source project and corresponding packages for this SDK remain publicly available.

Existing applications developed using the SDK will continue to operate against existing Pelion Device Management REST APIs (assuming that those APIs are not subject to the deprecation process for commercial customers). New APIs supported by Pelion Device Management will only be available through the REST APIs.

It is recommended that for ongoing development, applications which previously used the SDK should be migrated over time to access the Pelion Device Management REST APIs directly.

Please see this page, which provides additional information on using the REST APIs. By following this guide, you will learn how to build a web application using the REST APIs directly.


License CircleCI Build status codecov

The Pelion Device Management SDK gives developers access to the full Pelion Device Management suite using .NET Standard 2.0.

Installation

  1. Download the .NET Core SDK from here. There are installers for Windows, Linux and Mac.
  2. Create a new console application
dotnet new console -o myApp
cd myApp
  1. Install the MbedCloudSDK in your project
dotnet add package Mbed.Cloud.SDK
dotnet build
  1. To use the SDK you'll need an Api Key, which you can get from the Pelion Device Management Portal.

Example Usage

The following sample lists the first ten devices in your Device Directory.

using System;
using Mbed.Cloud;
using Mbed.Cloud.Foundation;

public class HelloWorldSeparateSdk
{
    public static void Main()
    {
        // Create an instance of the Pelion Device Management SDK
        var sdk = new SDK();

        var options = new DeviceListOptions
        {
            MaxResults = 10     // Limit to ten devices
        };

        // List the first ten devices on your Pelion Device Management account
        foreach (var device in sdk.Foundation().DeviceRepository().List(options))
        {
            Console.WriteLine("Hello device " + device.Name);
        }
    }
}

Documentation

See full documentation and API reference here.

Contributing

Pelion Device Management 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

Pelion Device Management Cloud SDK for .NET is free-to-use and licensed under the Apache License 2.0. Please see LICENSE file for more information.

mbed-cloud-sdk-dotnet's People

Contributors

acabarbaye avatar adriano-repetti avatar alexl0gan avatar arekzaluski avatar dependabot-preview[bot] avatar dependabot[bot] avatar fheathco avatar hermansc avatar madchutney avatar mark-edgeworth avatar monty-bot avatar thegecko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jann33 alexl0gan

mbed-cloud-sdk-dotnet's Issues

Enclosing quotes pushed to device?

I'm exercising the API like so:
capi.SetResourceValueAsync(dev.Id, "/32111/0/32101", "Free", true);

I'm expecting this to set the resource 32111/0/32101 (which is a string-type resource) to Free. However, on my device, I see that the resource value is being written as "Free". Something along the chain is thus inserting double quotes. Any idea where this might come from?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.