Info
Version: | 1.2.1 |
Author(s): | nexussays |
Last Update: | Tuesday, October 9, 2018 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/nexussays/ble.net |
NuGet Url: | https://www.nuget.org/packages/ble.net-android |
Install
Install-Package ble.net-android
dotnet add package ble.net-android
paket add ble.net-android
ble.net-android Download (Unzip the "nupkg" after downloading)
Dependencies
monoandroid44
- ble.net(>= 1.2.1)
- nexus.core(>= 0.34.0)
- ble.net(>= 1.2.1)
- nexus.core(>= 0.34.0)
Tags
Scan for advertisements and beacons, connect to devices, read/write/notify/indicate, all with a straightforward async API.
To get started, add these normal permissions to your app:
[assembly: UsesPermission( Manifest.Permission.Bluetooth )]
[assembly: UsesPermission( Manifest.Permission.BluetoothAdmin )]
Then in your main Activity OnCreated(), initialize and obtain the adapter. Retain this adapter reference for the lifetime of your app:
BluetoothLowEnergyAdapter.Init( this );
var ble = BluetoothLowEnergyAdapter.ObtainDefaultAdapter( this );
Complete readme & sample application:
https://github.com/nexussays/ble.net/blob/master/Readme.md.