DeviceServerStartSerialSlave 方法 (String, Int32) |
启动串口的从机服务,使用默认的参数进行初始化串口,8位数据位,无奇偶校验,1位停止位
Start the slave service of serial, initialize the serial port with default parameters, 8 data bits, no parity, 1 stop bit
命名空间:
HslCommunication.Core.Device
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult StartSerialSlave(
string com,
int baudRate
)
Public Function StartSerialSlave (
com As String,
baudRate As Integer
) As OperateResult
public:
OperateResult^ StartSerialSlave(
String^ com,
int baudRate
)
member StartSerialSlave :
com : string *
baudRate : int -> OperateResult
参数
- com
- 类型:SystemString
串口信息 - baudRate
- 类型:SystemInt32
波特率
返回值
类型:
OperateResult[缺少 "M:HslCommunication.Core.Device.DeviceServer.StartSerialSlave(System.String,System.Int32)" 的 <returns> 文档]
参见