SensiEdge libruary is intended for communication between SensiEDGE Development Board and Windows 10 applications
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Windows 10 version 1709 December 12, 2017 (KB4056342) and upper
- Active BLE 4.0+ module onboard
Libruary is available on nuget
Install-Package SensiBle -Version 1.0.0
Libruary may used in user's application Part 1 Part 2
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();
This video shows how the libruary could be used in your's applications
Data from sensors could be sent to cloud, for example Azure
- Visual Studio - IDE used
- .NET Framework - Main framework
- C# - Used for code implementation
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Andrey Nosov - Andrey Nosov
This project is licensed under the MIT License - see the LICENSE.md file for details