TwclRfCommClient.Write(Pointer,Cardinal,Cardinal) Method

Sends data to the connected device.

Namespace: wclBluetooth
public
 function Write(const Data: Pointer; const Size: Cardinal;
 out Written: Cardinal): Integer;

Parameters

Data
Type: Pointer

The pointer to the data buffer that should be sent to the connected device.

Size
Type: Cardinal

The data buffer size.

Written
Type: Cardinal

The amount of bytes actually written to the device.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The write is synchronous operation.