BinaryCommunicationSetDtuPipeAsync 方法 |
将当前的通信对象设置DTU模式,允许传入现成的管道,并返回初始化结果,如果该设备重写了握手报文,就是返回握手结果
Set the current communication object to DTU mode, allow the existing pipe to be passed in, and return the initialization result,
if the device rewrites the handshake packet, the handshake result is returned
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> SetDtuPipeAsync(
PipeDtuNet pipe
)
Public Function SetDtuPipeAsync (
pipe As PipeDtuNet
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ SetDtuPipeAsync(
PipeDtuNet^ pipe
)
member SetDtuPipeAsync :
pipe : PipeDtuNet -> Task<OperateResult>
参数
- pipe
- 类型:HslCommunication.Core.PipePipeDtuNet
DTU的管道信息
返回值
类型:
TaskOperateResult是否设置管道并初始化成功
参见