Serial Framework
ContentsIndexHome
PreviousUpNext
CwclSerialClient::Write Method

Sends data to the connected device.

Syntax
C++
int Write(void* Data, unsigned long Size, unsigned long& Written);
Parameters 
Description 
void* Data 
The pointer to the data buffer that should be sent to the connected device.  
unsigned long Size 
The data buffer size.  
unsigned long& Written 
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.

The write is synchronous operation.

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