TwclGattClientConnection.Subscribe(TwclGattCharacteristic) Method
Subscribes for the characteristic changes notifications.
public function Subscribe(const Characteristic: TwclGattCharacteristic): Integer;
Parameters
- Characteristic
- Type: TwclGattCharacteristic
A characteristic object in that changes an application is interested.
Return Value
Type: Integer
If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
The method does not change Client Configuration Descriptor
value. Application must do it by itself or by calling
the WriteClientConfiguration
method.