Class GattDeviceService
- Assembly
- nanoFramework.Device.Bluetooth.dll
Represents a GATT Primary Service on a Bluetooth device. The GattDeviceService class represents a GATT service on a Bluetooth LE device.
public class GattDeviceService : IGattAttribute, IDisposable
- Inheritance
-
GattDeviceService
- Implements
- Inherited Members
- Extension Methods
Properties
AttributeHandle
Gets the handle used to uniquely identify GATT-based characteristic attributes as declared on the Bluetooth LE device.
public ushort AttributeHandle { get; }
Property Value
Device
Gets the BluetoothLEDevice object describing the device associated with the current GattDeviceService object.
public BluetoothLEDevice Device { get; }
Property Value
Uuid
Gets the GATT Service UUID associated with this GattDeviceService.
public Guid Uuid { get; }
Property Value
Methods
Dispose()
Dispose GattDeviceService object.
public void Dispose()
GetCharacteristics()
Gets the characteristics that are part of this GattDeviceService instance.
public GattCharacteristicsResult GetCharacteristics()
Returns
- GattCharacteristicsResult
GattCharacteristicsResult
GetCharacteristicsForUuid(Guid)
Gets the characteristics that are part of this GattDeviceService instance and associated with the characteristicUuid.
public GattCharacteristicsResult GetCharacteristicsForUuid(Guid characteristicUuid)
Parameters
characteristicUuid
GuidThe UUID for the characteristics to be retrieved.
Returns
- GattCharacteristicsResult
An GattCharacteristicsResult object.