wclGattClientWriteCharacteristicValue Method |
The method writes the specified characteristic value to the
Bluetooth device.
Namespace: wclBluetoothAssembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax public int WriteCharacteristicValue(
wclGattCharacteristic Characteristic,
byte[] Value,
wclGattProtectionLevel Protection = wclGattProtectionLevel.plNone,
wclGattWriteKind WriteKind = wclGattWriteKind.wkAuto
)
Public Function WriteCharacteristicValue (
Characteristic As wclGattCharacteristic,
Value As Byte(),
Optional Protection As wclGattProtectionLevel = wclGattProtectionLevel.plNone,
Optional WriteKind As wclGattWriteKind = wclGattWriteKind.wkAuto
) As Integer
public:
int WriteCharacteristicValue(
wclGattCharacteristic Characteristic,
array<unsigned char>^ Value,
wclGattProtectionLevel Protection = wclGattProtectionLevel::plNone,
wclGattWriteKind WriteKind = wclGattWriteKind::wkAuto
)
Parameters
- Characteristic wclGattCharacteristic
- A wclGattCharacteristic
structure obtained by previous call to the ReadCaracteristics
method.
- Value Byte
- Contains a characteristic's value as bytes
array.
- Protection wclGattProtectionLevel (Optional)
- Describes the required protection
level.
- WriteKind wclGattWriteKind (Optional)
- The write operation mode.
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