C# Class BluetoothLE.Core.Extensions

Common Bluetooth extension methods.
Afficher le fichier Open project: tbrushwyler/Xamarin.BluetoothLE

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat System.Guid

Write() public static méthode

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.
Résultat void