wclGattClientConnectionWriteCharacteristicValue 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,
wclGattProtectionLevel Protection,
byte[] Value,
wclGattWriteKind WriteKind
)
Public Function WriteCharacteristicValue (
Characteristic As wclGattCharacteristic,
Protection As wclGattProtectionLevel,
Value As Byte(),
WriteKind As wclGattWriteKind
) As Integer
public:
int WriteCharacteristicValue(
wclGattCharacteristic Characteristic,
wclGattProtectionLevel Protection,
array<unsigned char>^ Value,
wclGattWriteKind WriteKind
)
Parameters
- Characteristic wclGattCharacteristic
- A wclGattCharacteristic
structure obtained by previous call to the ReadCaracteristics
method.
- Protection wclGattProtectionLevel
- Describes the required protection
level.
- Value Byte
- Contains a characteristic's value as bytes
array.
- WriteKind wclGattWriteKind
- 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