C# Class InTheHand.Devices.Enumeration.BluetoothLEDevice

Represents a Bluetooth LE device.
ファイルを表示 Open project: inthehand/Charming

Public Methods

Method Description
FromBluetoothAddressAsync ( ulong bluetoothAddress ) : Task

Returns a BluetoothLEDevice object for the given BluetoothAddress.

FromIdAsync ( string deviceId ) : Task

Returns a BluetoothLEDevice object for the given Id.

GetDeviceSelector ( ) : string

Gets an Advanced Query Syntax (AQS) string for identifying all Bluetooth Low Energy (LE) devices. This string is passed to the FindAllAsync or CreateWatcher method in order to get a list of Bluetooth LE devices.

Private Methods

Method Description
BluetoothLEDevice ( CBPeripheral peripheral ) : System
BluetoothLEDevice ( Windows device ) : System
_peripheral_DiscoveredService ( object sender, Foundation e ) : void
_peripheral_UpdatedName ( object sender, EventArgs e ) : void

Method Details

FromBluetoothAddressAsync() public static method

Returns a BluetoothLEDevice object for the given BluetoothAddress.
public static FromBluetoothAddressAsync ( ulong bluetoothAddress ) : Task
bluetoothAddress ulong
return Task

FromIdAsync() public static method

Returns a BluetoothLEDevice object for the given Id.
public static FromIdAsync ( string deviceId ) : Task
deviceId string
return Task

GetDeviceSelector() public static method

Gets an Advanced Query Syntax (AQS) string for identifying all Bluetooth Low Energy (LE) devices. This string is passed to the FindAllAsync or CreateWatcher method in order to get a list of Bluetooth LE devices.
public static GetDeviceSelector ( ) : string
return string