Serial Framework C++ Edition

◆ Write()

int Write ( const void *const  Data,
const unsigned long  Size,
unsigned long &  Written 
) const

Sends data to the connected device.

Parameters
DataThe pointer to the data buffer that should be sent to the connected device.
SizeThe data buffer size.
WrittenThe amount of bytes actually written to the device.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The write is synchronous operation.