Bluetooth Framework C++ Edition

◆ Subscribe()

int Subscribe ( const wclGattCharacteristic Characteristic,
wclGattSubscribeKind  SubscribeKind = skManual 
)

Subscribes for the characteristic changes notifications.

Parameters
CharacteristicA characteristic object in that changes an application is interested.
SubscribeKindIndicates a characteristic value change notification method that should be used. If a characteristic has both IsIndicatable and IsNotifiable properties set then this parameter allows to control which notification method should be used.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
See also
wclGattCharacteristic, wclGattOperationFlag, wclGattSubscribeKind