一款简单易用的基础网络通讯组件库。

SerialPortOptionRtsEnable 属性

Gets or sets a value indicating whether the Request to Send (RTS) signal is enabled during serial communication.

Definition

命名空间: TouchSocket.SerialPorts
程序集: TouchSocket.SerialPorts (在 TouchSocket.SerialPorts.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public bool RtsEnable { get; set; }

返回值

Boolean
to enable Request to Transmit (RTS); otherwise, . The default is .

异常

InvalidOperationExceptionThe value of the RtsEnable property was set or retrieved while the Handshake property is set to the RequestToSend value or the RequestToSendXOnXOff value.
IOExceptionThe port is in an invalid state. -or- An attempt to set the state of the underlying port failed. For example, the parameters passed from this SerialPort object were invalid.

参见