.NET Standard 2.0 MetaMotion / MetaWear C# SDK
Switch branches/tags
Nothing to show
Clone or download
Latest commit b525720 Sep 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MetaWear.Test api v1.1.0 commit Sep 15, 2018
MetaWear api v1.1.0 commit Sep 15, 2018
nuget api v1.1.0 commit Sep 15, 2018
.gitattributes Add .gitignore and .gitattributes. Apr 1, 2017
.gitignore api v1.1.0 commit Sep 15, 2018
.travis.yml Setup travis ci file May 6, 2018
LICENSE.md Create LICENSE.md Aug 13, 2017
MetaWear-SDK-CSharp.sln api v1.0.15 commit May 14, 2018
README.md api v1.0.15 commit May 14, 2018

README.md

MetaWear C# SDK

SDK for creating MetaWear apps using C#.

The SDK is distributed on NuGet as a platform agnostic, .NET Standard 2.0 assembly. Due to its platform agnostic nature, developers will need to plugin their own BLE stack and file i/o code specific to their target environment.

Install

The C# SDK is distributed via NuGet and can be installed with the package manager console:

PM> Install-Package MetaWear.CSharp

Usage

MbientLab provides an implementation of the MetaWear API in the Impl namespace. Similiarly to the top level interfaces, the main class in the Impl namespace is the MetaWearBoard class.

To instantiate a MetaWearBoard object, you will need to provide an implementation of the IBluetoothLeGatt and the ILibraryIO interfaces:

using MbientLab.MetaWear.Impl.Platform;

class BluetoothLeGatt : IBluetoothLeGatt {
    // Implementation here
}

class IO : ILibraryIO {
    // Implementation here
}

var metawear = new MetaWearBoard(new BluetoothLeGatt(), new IO());

Once you have your IMetaWearBoard object, you can begin using the SDK features are described in the developers' guide.