TwclGattServerConnection Class
The "virtual" connection for the Bluetooth GATT Server
type TwclGattServerConnection = class(TwclCustomConnection) end;
The TwclGattServerConnection type exposes the following members.
Name | Description | |
---|---|---|
Create(TwclBluetoothRadio) | Creates a new "virtual" GATT Server connection object. | |
Destroy | Frees the GATT Server connection. (Overrides TwclCustomConnection.Destroy.) |
Name | Description | |
---|---|---|
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.) |
Name | Description | |
---|---|---|
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 | |
DoClientDisconnected(TwclGattServerClient) | Fires the | |
DoConnectionParamsChanged(TwclGattServerClient) | Fires the | |
DoConnectionPhyChanged(TwclGattServerClient) | Fires the | |
DoMaxPduSizeChanged(TwclGattServerClient) | Fires the | |
DoNotificationSizeChanged(TwclGattServerClient) | Fires the | |
DoRead(TwclGattServerClient,TwclGattLocalCharacteristic,TwclGattLocalCharacteristicReadRequest) | Fires the | |
DoStarted | Fires the | |
DoStopped | Fires the | |
DoSubscribed(TwclGattServerClient,TwclGattLocalCharacteristic) | Fires the | |
DoUnsubscribed(TwclGattServerClient,TwclGattLocalCharacteristic) | Fires the | |
DoWrite(TwclGattServerClient,TwclGattLocalCharacteristic,TwclGattLocalCharacteristicWriteRequest) | Fires the | |
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. |
Name | Description | |
---|---|---|
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. |
An application must not create or use this class directly. Instead of that an application must use high-level Bluetooth components.