Bluetooth Framework
ContentsIndexHome
PreviousUpNext
TwclCustomDataProcessor.WriteData Method

Implements a connection-dependent code that sends data to the connected device.

Syntax
Pascal
function WriteData(const Data: Pointer; const Size: Cardinal; out Written: Cardinal): Integer; virtual; abstract;
Parameters 
Description 
const Data: Pointer 
The pointer to the data buffer that should be sent to the connected device.  
const Size: Cardinal 
The data buffer size.  
out Written: Cardinal 
The amount of bytes actually written to the device.  

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

A derived class must override this method to implement a connection-dependent code that sends data to the connected device.

Copyright (c) 2006-2019. All rights reserved.