Write Method
Writes data to the port.
Syntax
Visual Basic .NET | Sub Write(ByVal DataBuffer As IntPtr, ByVal BytesToWrite As UInt32) |
---|---|
Visual C# | void Write(IntPtr DataBuffer, UInt32 BytesToWrite); |
Parameters
DataBuffer
[in] Buffer of characters to be written. Use type-casting to convert it from void* or char*.
BytesToWrite
[in] Number of bytes to write to serial port (in bytes!).
Errors
The method may throw exception. Use GetLastError method to get the error code.
ftvspcErrorFailed | 1 | The operation has not been completed. |
---|---|---|
ftvspcErrorInvalidParameter | 2 | Invalid parameter. |