Click or drag to resize

wclGattServerConnection Class

The "virtual" connection for the Bluetooth GATT Server
Inheritance Hierarchy
SystemObject
  wclCommunicationwclCustomConnection
    wclBluetoothwclGattServerConnection

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public abstract class wclGattServerConnection : wclCustomConnection

The wclGattServerConnection type exposes the following members.

Constructors
 NameDescription
Public methodwclGattServerConnection Creates a new "virtual" GATT Server connection object.
Top
Properties
 NameDescription
Public propertyActive Gets the GATT server state.
Public propertyClientsCount Gets the clients count.
Public propertyRadio Gets the connection owner.
Public propertyReceiver Gets the connection message receiver object.
(Inherited from wclCustomConnection)
Public propertyServicesCount Gets the services count.
Public propertyThreadId Gets the connection's thread ID.
(Inherited from wclCustomConnection)
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 connection's critical section.
(Inherited from wclCustomConnection)
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)
Protected methodHalCreateClient Creates a driver specific GATT server client object.
Protected methodHalCreateService Creates a driver specific local GATT service object.
Protected methodHalInitialize Implements a driver specific code to initialize Bluetooth LE GATT Server.
Protected methodHalUninitialize Implements a driver specific code to uninitialize Bluetooth LE GATT Server.
Protected methodLeave Exists *leaves) the connection's critical section.
(Inherited from wclCustomConnection)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMessageReceived The method called when a new notification message received.
(Overrides wclCustomConnectionMessageReceived(wclMessage))
Public methodServices Gets the local GATT service by its index.
Public methodStart Starts the Bluetooth LE GATT Server.
Public methodStop Stops the Bluetooth LE GATT Server.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
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
An application must not create or use this class directly. Instead of that an application must use high-level Bluetooth components.
See Also