Arendi.BleLibrary
4.5.1.999
Core-Library (PCL)
|
Class representing a bluetooth UUID. More...
Public Member Functions | |
Uuid (byte[] uuid) | |
Create a UUID. More... | |
Uuid (UInt16 uuid) | |
Create a UUID. More... | |
Uuid (UInt32 uuid) | |
Create a UUID. More... | |
Uuid (ulong uuid) | |
Create a UUID. More... | |
Uuid (string uuid) | |
Create a UUID. More... | |
bool | IsSigShortService () |
Checks if the uuid is defined by Bluetooth SIG as a GATT service More... | |
bool | IsSigShortDeclaration () |
Checks if the uuid is defined by Bluetooth SIG as a GATT declaration More... | |
bool | IsSigShortDescriptor () |
Checks if the uuid is defined by Bluetooth SIG as a GATT descriptor More... | |
override bool | Equals (object obj) |
Determines whether the specified object is equal to the current object. More... | |
override int | GetHashCode () |
Serves as the default hash function. More... | |
override string | ToString () |
Returns a string that represents the current object. More... | |
string | ToStringUpper () |
Convert UUID to an upper cased string. More... | |
string | ToStringLower () |
Convert UUID to an lower cased string. More... | |
Static Public Member Functions | |
static Uuid | ConvertTo128BitBluetoothUuid (Uuid uuid) |
Convert a UUID to a 128 bit Bluetooth UUID. More... | |
static bool | operator== (Uuid a, Uuid b) |
Implementation for the == operator. More... | |
static bool | operator!= (Uuid a, Uuid b) |
Implementation for the != operator. More... | |
static | operator UInt16 (Uuid uuid) |
Define explicit converter for Uuid to UInt16 conversion. More... | |
static | operator Uuid (UInt16 val) |
Define explicit converter for UInt16 to Uuid conversion. More... | |
Properties | |
byte [] | Data [get] |
Get the binary UUID data. More... | |
int | Length [get] |
Get the length of the UUID. More... | |
Class representing a bluetooth UUID.
Arendi.BleLibrary.Uuid.Uuid | ( | byte [] | uuid | ) |
Create a UUID.
uuid | Byte array with the UUID. |
Arendi.BleLibrary.Uuid.Uuid | ( | UInt16 | uuid | ) |
Create a UUID.
uuid | UInt16 value with the UUID. |
Arendi.BleLibrary.Uuid.Uuid | ( | UInt32 | uuid | ) |
Create a UUID.
uuid | UInt32 value with the UUID. |
Arendi.BleLibrary.Uuid.Uuid | ( | ulong | uuid | ) |
Create a UUID.
uuid | Ulong with the UUID. |
Arendi.BleLibrary.Uuid.Uuid | ( | string | uuid | ) |
Create a UUID.
uuid | String with the UUID. |
Convert a UUID to a 128 bit Bluetooth UUID.
If the given UUID is already 128 bits a copy of this object is returned. If the given UUID has a length of 16 or 32 bits it will be converted to a Bluetooth SIG UUID with length of 128 bits. This is done by inserting the short UUID in the Bluetooth base UUID YYYYXXXX-0000-1000-8000-00805f9b34fb.
uuid | UUID to be converted to a 128-Bit UUID. |
override bool Arendi.BleLibrary.Uuid.Equals | ( | object | obj | ) |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
override int Arendi.BleLibrary.Uuid.GetHashCode | ( | ) |
Serves as the default hash function.
bool Arendi.BleLibrary.Uuid.IsSigShortDeclaration | ( | ) |
Checks if the uuid is defined by Bluetooth SIG as a GATT declaration
bool Arendi.BleLibrary.Uuid.IsSigShortDescriptor | ( | ) |
Checks if the uuid is defined by Bluetooth SIG as a GATT descriptor
bool Arendi.BleLibrary.Uuid.IsSigShortService | ( | ) |
Checks if the uuid is defined by Bluetooth SIG as a GATT service
|
explicitstatic |
Define explicit converter for Uuid to UInt16 conversion.
uuid | UUID to convert to an UInt16 value. |
|
explicitstatic |
Define explicit converter for UInt16 to Uuid conversion.
val | UInt16 value to convert to an UUID. |
Implementation for the != operator.
a | First UUID. |
b | Second UUID. |
true
if the UUIDs are not equal, false
if they are.Implementation for the == operator.
a | First UUID. |
b | Second UUID. |
true
if the UUIDs are equal, false
if not.override string Arendi.BleLibrary.Uuid.ToString | ( | ) |
Returns a string that represents the current object.
string Arendi.BleLibrary.Uuid.ToStringLower | ( | ) |
Convert UUID to an lower cased string.
string Arendi.BleLibrary.Uuid.ToStringUpper | ( | ) |
Convert UUID to an upper cased string.
|
get |
Get the binary UUID data.
|
get |
Get the length of the UUID.