TwclGattLocalService Class
This class represents a local GATT service.
type TwclGattLocalService = class(TwclGattLocalAttribute) end;
The TwclGattLocalService type exposes the following members.
Name | Description | |
---|---|---|
Create(TwclGattServerConnection,TwclGattUuid) | Creates new Local GATT service. | |
Destroy | Frees the object. (Overrides TwclGattLocalAttribute.Destroy.) |
Name | Description | |
---|---|---|
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.) |
Name | Description | |
---|---|---|
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.) |
An application must not create or destroy this class directly. Instead of that an application must use methods of the TwclGattServerConnection classes.