DotNetSerialPort

DotNetSerialPort.WriteHexString Method (String, Int32)

Writes data represented by a hexadecimal string to the port

public bool WriteHexString(
   string hexStr,
   int vtimeout
);

Parameters

hexStr
Hex-string to be written to the port
vtimeout
Specifies timeout in milliseconds

Return Value

Returns true on success

Remarks

Example

port1.WriteHexString("012345abcd");
port1.WriteHexString("01 23 45 ab cd");
port1.WriteHexString("0 1 2 3 4 5 a b c d");

See Also

DotNetSerialPort Class | SWBOX Namespace | DotNetSerialPort.WriteHexString Overload List