Click or drag to resize

wclGattServer Class

Bluetooth Low Energy GATT server.
Inheritance Hierarchy
SystemObject
  wclBluetoothwclBluetoothComponent
    wclBluetoothwclGattServer

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public class wclGattServer : wclBluetoothComponent

The wclGattServer type exposes the following members.

Constructors
 NameDescription
Public methodwclGattServer Creates new component.
Top
Properties
 NameDescription
Public propertyClientsCount Gets the clients count.
Public propertyInitialized Gets the server's state.
Public propertyRadio Gets the server's owner.
Public propertyServicesCount Gets the services count.
Public propertyStarted Gets the server running status.
Top
Methods
 NameDescription
Public methodAddService Creates new local GATT service and adds it to the services list.
Public methodClearServices Clears the local services list.
Public methodClients Gets the GATT server client by its index.
Public methodDeleteService Deletes the service with given index.
Protected methodDoClientConnected Fires the OnClientConnected event.
Protected methodDoClientDisconnected Fires the OnClientDisconnected event.
Protected methodDoConnectionParamsChanged Fires the OnConnectionParamsChanged event.
Protected methodDoConnectionPhyChanged Fires the OnConnectionPhyChanged event.
Protected methodDoMaxPduSizeChanged Fires the OnMaxPduSizeChanged event.
Protected methodDoNotificationSizeChanged Fires the OnNotificationSizeChanged event.
Protected methodDoRead Fires the OnRead event.
Protected methodDoStarted Fires the OnStarted event.
Protected methodDoStopped Fires the OnStopped event.
Protected methodDoSubscribed Fires the OnSubscribed event.
Protected methodDoUnsubscribed Fires the OnUnsubscribed event.
Protected methodDoWrite Fires the OnWrite event.
Protected methodEnter Enters the Bluetooth component protection critical section.
(Inherited from wclBluetoothComponent)
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitialize Initializes Bluetooth LE GATT Server.
Protected methodLeave Leaves the Bluetooth component protection critical section.
(Inherited from wclBluetoothComponent)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodServices Gets the local GATT service by its index.
Public methodStart Starts the GATT server.
Public methodStop Stops the GATT server.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUninitialize Uninitializes the Bluetooth LE GATT Server.
Top
Events
 NameDescription
Public eventOnClientConnected The event fires when a client connected to the server.
Public eventOnClientDisconnected The event fires when a client disconnected from the server.
Public eventOnConnectionParamsChanged The event fires when the connection parameters changed.
Public eventOnConnectionPhyChanged The event fires when the connection PHY changed.
Public eventOnMaxPduSizeChanged The event fires when maximum PDU size changed for the connected client.
Public eventOnNotificationSizeChanged The event fires when a maximum notification size of a subscribed client has been changed.
Public eventOnRead The event fires when a remote GATT client requests characteristic's data read.
Public eventOnStarted The event fires when the Bluetooth LE GATT Server has been successfully started.
Public eventOnStopped The event fires when the Bluetooth LE GATT Server has been stopped.
Public eventOnSubscribed The event fires when a remote GATT client subscribes to the characteristic changes notifications or indications.
Public eventOnUnsubscribed The event fires when a remote GATT client unsubscribes from the characteristic changes notifications or indications.
Public eventOnWrite The event fires when a remote device writes data to the characteristic.
Top
Remarks
The TwclGattServer component enables an application to act as GATT peripheral device.
See Also