Bluetooth Framework C++ Edition

◆ Unsubscribe()

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

Unsubscribes from the characteristic changes notifications.

Parameters
CharacteristicA characteristic object in that changes an application is not interested any more.
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