点击或拖拽改变大小

NetworkDataServerBaseStartSerialSlave 方法 (String)

启动串口的从机服务,使用默认的参数进行初始化串口,9600波特率,8位数据位,无奇偶校验,1位停止位
Start the slave service of serial, initialize the serial port with default parameters, 9600 baud rate, 8 data bits, no parity, 1 stop bit

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public void StartSerialSlave(
	string com
)

参数

com
类型:SystemString
串口信息
备注
com支持格式化的方式,例如输入 COM3-9600-8-N-1,COM5-19200-7-E-2,其中奇偶校验的字母可选,N:无校验,O:奇校验,E:偶校验,停止位可选 0, 1, 2, 1.5 四种选项
参见