DotNetSerialPort.WriteString Method (String, Int32)
Writes a string to the port
Parameters
-
str
- The string to be written
-
vtimeout
- Specifies timeout in milliseconds
Return Value
Returns true on success
Remarks
- The string is translated to ANSI before it is written to the port
- If the timeout parameter is -1, then the function waits until the operation is completed.
- If the timeout parameter is 0, then the function returns immediately.
- This function can only be used when the port is open.
See Also
DotNetSerialPort Class | SWBOX Namespace | DotNetSerialPort.WriteString Overload List