C# Class BluetoothLE.Core.Extensions

Common Bluetooth extension methods.
Mostrar archivo Open project: tbrushwyler/Xamarin.BluetoothLE

Public Methods

Method Description
ToGuid ( this uuid ) : System.Guid

Convert a UUID to a Guid by using it as the first part of the Guid {0}-0000-1000-8000-00805f9b34fb

Write ( this device, string serviceUuid, string characteristicUuid, byte data ) : void

Write the specified data to a device.

Method Details

ToGuid() public static method

Convert a UUID to a Guid by using it as the first part of the Guid {0}-0000-1000-8000-00805f9b34fb
public static ToGuid ( this uuid ) : System.Guid
uuid this The UUID to convert. /// If the string is 4 characters, "0000" will be appended before creating the Guid. /// If the string is 8 characters, nothing is appended before creating the Guid. /// If the string is not 4 characters or 8 characters, the exact Guid is parsed from the input. ///
return System.Guid

Write() public static method

Write the specified data to a device.
public static Write ( this device, string serviceUuid, string characteristicUuid, byte data ) : void
device this The device to write the data to.
serviceUuid string The service to write the data to.
characteristicUuid string The characteristic to write the data to.
data byte The data to write to the device.
return void