wclGattClientConnectionWriteClientConfiguration Method |
Writes the client configuration descriptor to the
device.
Namespace: wclBluetoothAssembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax public int WriteClientConfiguration(
wclGattCharacteristic Characteristic,
bool Subscribe,
wclGattOperationFlag Flag,
wclGattProtectionLevel Protection
)
Public Function WriteClientConfiguration (
Characteristic As wclGattCharacteristic,
Subscribe As Boolean,
Flag As wclGattOperationFlag,
Protection As wclGattProtectionLevel
) As Integer
public:
int WriteClientConfiguration(
wclGattCharacteristic Characteristic,
bool Subscribe,
wclGattOperationFlag Flag,
wclGattProtectionLevel Protection
)
Parameters
- Characteristic wclGattCharacteristic
- A characteristic object in that changes
an application is interested.
- Subscribe Boolean
- The value indicates should we subscribe
or unsubscribe from the characteristic value changes.
- Flag wclGattOperationFlag
- Operation behavior flag.
- Protection wclGattProtectionLevel
- Describes the required protection
level.
Return Value
Int32 If the function succeed the return value is
WCL_E_SUCCESS. Otherwise the method returns one of
the WCL error codes.
Remarks In order to receive notifications about characteristic
value changes the client must set the Client Configuration Descriptor.
An application can use this method to do it in easy way.
See Also