C# Class BluetoothLE.Droid.Device

Concrete implmentation of BluetoothLE.Core.IDevice interface
Inheritance: IDevice
Show file Open project: tbrushwyler/Xamarin.BluetoothLE Class Usage Examples

Public Methods

Method Description
Device ( Android.Bluetooth.BluetoothDevice nativeDevice, Android.Bluetooth.BluetoothGatt gatt, GattCallback callback, int rssi, byte scanRecord ) : System

Initializes a new instance of the BluetoothLE.Droid.Device class.

DeviceIdFromAddress ( string address ) : System.Guid

Gets a device identifier from a MAC address

Disconnect ( ) : void

Discconnect from the device.

DiscoverServices ( ) : void

Initiate a service discovery on the device

Private Methods

Method Description
ServicesDiscovered ( object sender, EventArgs e ) : void

Method Details

Device() public method

Initializes a new instance of the BluetoothLE.Droid.Device class.
public Device ( Android.Bluetooth.BluetoothDevice nativeDevice, Android.Bluetooth.BluetoothGatt gatt, GattCallback callback, int rssi, byte scanRecord ) : System
nativeDevice Android.Bluetooth.BluetoothDevice Native device.
gatt Android.Bluetooth.BluetoothGatt Native Gatt.
callback GattCallback Callback.
rssi int Rssi.
scanRecord byte scanRecord.
return System

DeviceIdFromAddress() public static method

Gets a device identifier from a MAC address
public static DeviceIdFromAddress ( string address ) : System.Guid
address string The MAC address.
return System.Guid

Disconnect() public method

Discconnect from the device.
public Disconnect ( ) : void
return void

DiscoverServices() public method

Initiate a service discovery on the device
public DiscoverServices ( ) : void
return void