TwclGattLocalService Class

This class represents a local GATT service.

Namespace: wclBluetooth
TObject
  wclBluetooth.TwclGattLocalAttribute
    wclBluetooth.TwclGattLocalService
type
 TwclGattLocalService = class(TwclGattLocalAttribute)
 end;

The TwclGattLocalService type exposes the following members.

Show:
 NameDescription
Create(TwclGattServerConnection,TwclGattUuid)

Creates new Local GATT service.

Destroy

Frees the object. (Overrides TwclGattLocalAttribute.Destroy.)

Top
Show:
 NameDescription
Added

Gets the service state.

CharacteristicsCount

Gets the characteristics count.

Characteristics[Integer]

Gets the GATT characteristic by its index.

Connectable

Gets or sets a boolean that indicates if the GATT service is connectable.

Discoverable

Gets or sets a boolean indicating that the GATT service is discoverable.

Error

Gets the service's publising result code.

Server

Gets the GATT server object that owns the service.

Uuid

Gets the attribute's UUID. (Inherited from TwclGattLocalAttribute.)

Top
Show:
 NameDescription
AddCharacteristic(TwclGattUuid,TwclGattLocalCharacteristicParameters,TwclGattLocalCharacteristic)

Creates new characteristic and adds it to the service characteristics list.

ClearCharacteristics

Clears the characteristics list.

DeleteCharacteristic(Integer)

Deletes the characteristic with given index.

Enter

Enters the GATT local attribute protection critical section. (Inherited from TwclGattLocalAttribute.)

HalAdd

The method implements a driver specific code to add local GATT service to the GATT server.

HalCreate

The method implements a driver specific code to create local GATT service to the GATT server.

HalCreateCharacteristic(TwclGattUuid,TwclGattLocalCharacteristicParameters,TwclGattLocalCharacteristic)

The function creates a driver specific GATT characteristic object.

HalDestroy

The method implements a driver specific code to destroy local GATT service from the GATT server.

HalRemove

The method implements a driver specific code to remove local GATT service from the GATT server.

Leave

Leaves the GATT local attribute protection critical section. (Inherited from TwclGattLocalAttribute.)

Top

An application must not create or destroy this class directly. Instead of that an application must use methods of the TwclGattServerConnection classes.