TwclGattServerConnection Class

The "virtual" connection for the Bluetooth GATT Server

Namespace: wclBluetooth
TObject
  wclConnections.TwclCustomConnection
    wclBluetooth.TwclGattServerConnection
type
 TwclGattServerConnection = class(TwclCustomConnection)
 end;

The TwclGattServerConnection type exposes the following members.

Show:
 NameDescription
Create(TwclBluetoothRadio)

Creates a new "virtual" GATT Server connection object.

Destroy

Frees the GATT Server connection. (Overrides TwclCustomConnection.Destroy.)

Top
Show:
 NameDescription
Active

Gets the GATT server state.

ClientsCount

Gets the clients count.

Clients[Integer]

Gets the GATT server client by its index.

OnStarted

The event fires when the Bluetooth LE GATT Server has been successfully started.

OnStopped

The event fires when the Bluetooth LE GATT Server has been stopped.

Radio

Gets the connection owner.

Receiver

Gets the connection message receiver object. (Inherited from TwclCustomConnection.)

ServicesCount

Gets the services count.

Services[Integer]

Gets the local GATT service by its index.

ThreadId

Gets the connection's thread ID. (Inherited from TwclCustomConnection.)

Top
Show:
 NameDescription
AddService(TwclGattUuid,TwclGattLocalService)

Creates new local GATT service and adds it to the services list.

ClearServices

Clears the local services list.

DeleteService(Integer)

Deletes the service with given index.

DoClientConnected(TwclGattServerClient)

Fires the OnClientConnected event.

DoClientDisconnected(TwclGattServerClient)

Fires the OnClientDisconnected event.

DoConnectionParamsChanged(TwclGattServerClient)

Fires the OnConnectionParamsChanged event.

DoConnectionPhyChanged(TwclGattServerClient)

Fires the OnConnectionPhyChanged event.

DoMaxPduSizeChanged(TwclGattServerClient)

Fires the OnMaxPduSizeChanged event.

DoNotificationSizeChanged(TwclGattServerClient)

Fires the OnNotificationSizeChanged event.

DoRead(TwclGattServerClient,TwclGattLocalCharacteristic,TwclGattLocalCharacteristicReadRequest)

Fires the OnRead event.

DoStarted

Fires the OnStarted event.

DoStopped

Fires the OnStopped event.

DoSubscribed(TwclGattServerClient,TwclGattLocalCharacteristic)

Fires the OnSubscribed event.

DoUnsubscribed(TwclGattServerClient,TwclGattLocalCharacteristic)

Fires the OnUnsubscribed event.

DoWrite(TwclGattServerClient,TwclGattLocalCharacteristic,TwclGattLocalCharacteristicWriteRequest)

Fires the OnWrite event.

Enter

Enters the connection's critical section. (Inherited from TwclCustomConnection.)

HalCreateClient(Int64)

Creates a driver specific GATT server client object.

HalCreateService(TwclGattUuid,TwclGattLocalService)

Creates a driver specific local GATT service object.

HalInitialize

Implements a driver specific code to initialize Bluetooth LE GATT Server.

HalUninitialize

Implements a driver specific code to unitnialize Bluetooth LE GATT Server.

Leave

Exists *leaves) the connection's critical section. (Inherited from TwclCustomConnection.)

MessageReceived(TwclMessage)

The method called when a new notification message received. (Overrides TwclCustomConnection.MessageReceived(TwclMessage).)

Start

Starts the Bluetooth LE GATT Server.

Stop

Stops the Bluetooth LE GATT Server.

Top
Show:
 NameDescription
OnClientConnected

The event fires when a client connected to the server.

OnClientDisconnected

The event fires when a client disconnected from the server.

OnConnectionParamsChanged

The event fires when the connection parameters changed.

OnConnectionPhyChanged

The event fires when the connection PHY changed.

OnMaxPduSizeChanged

The event fires when maximum PDU size changed for the connected client.

OnNotificationSizeChanged

The event fires when a maximum notification size of a subscribed client has been changed.

OnRead

The event fires when a remote GATT client requests characteristic's data read.

OnSubscribed

The event fires when a remote GATT client subscribes to the characteristic changes notifications or indications.

OnUnsubscribed

The event fires when a remote GATT client unsubscribes from the characteristic changes notifications or indications.

OnWrite

The event fires when a remote device writes data to the characteristic.

Top

An application must not create or use this class directly. Instead of that an application must use high-level Bluetooth components.