Skip to content

SensiEDGE/SensiBleWindows

Repository files navigation

SensiBLEWindows

SensiEdge libruary is intended for communication between SensiEDGE Development Board and Windows 10 applications

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Windows 10 version 1709 December 12, 2017 (KB4056342) and upper
  • Active BLE 4.0+ module onboard

Installing

Libruary is available on nuget

Install-Package SensiBle -Version 1.0.0

Basical Usage in Custom Application

Libruary may used in user's application Part 1 Part 2

Main cases needed to be done

Find SensiBLE Device with BleWatcher

void Find()
{
  BleWatcher.Changed += BleWatcher_Changed;
  BleWatcher.StartWatch();
}

void BleWatcher_Changed()
{
  var Devices = BleWatcher.Devices;
  //Process needed device
}

Create and connect to BLE Deveice and set datasource enabled For example, Enviromental

async void Connect(DeviceInformation info)
{
  var device = await DeviceFactory.Get(info.Id);
  var source = device.EnvironmentalSource;
  source.OnChange += Source_OnChange;
  source.Enable();   
}
void Source_OnChange(Environmental value)
{
  var Pressure = value.Pressure;
  //Process other variables
}

After using sources don't forget deacivate them

source.Disable();   
BleWatcher.StopWatch();

Deployment

This video shows how the libruary could be used in your's applications

Cloud

Data from sensors could be sent to cloud, for example Azure

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Builds

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages