Click or drag to resize

wclGattClientReadCharacteristicValue Method

The method reads the value of the specified characteristic.

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public int ReadCharacteristicValue(
	wclGattCharacteristic Characteristic,
	wclGattOperationFlag Flag,
	out byte[] Value,
	wclGattProtectionLevel Protection = wclGattProtectionLevel.plNone
)

Parameters

Characteristic  wclGattCharacteristic
A wclGattCharacteristic structure obtained by previous call to the ReadCaracteristics method.
Flag  wclGattOperationFlag
Operation behavior flag.
Value  Byte
On output contains a characteristic's value as bytes array. An application is responsible to clean up a memory allocated for the dynamic array.
Protection  wclGattProtectionLevel  (Optional)
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.
See Also