NetworkUdpBaseReadFromCoreServer 方法 (Byte, Boolean, Boolean) |
核心的数据交互读取,发数据发送到通道上去,然后从通道上接收返回的数据
The core data is read interactively, the data is sent to the serial port, and the returned data is received from the serial port
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public virtual OperateResult<byte[]> ReadFromCoreServer(
byte[] send,
bool hasResponseData,
bool usePackAndUnpack
)
Public Overridable Function ReadFromCoreServer (
send As Byte(),
hasResponseData As Boolean,
usePackAndUnpack As Boolean
) As OperateResult(Of Byte())
public:
virtual OperateResult<array<unsigned char>^>^ ReadFromCoreServer(
array<unsigned char>^ send,
bool hasResponseData,
bool usePackAndUnpack
)
abstract ReadFromCoreServer :
send : byte[] *
hasResponseData : bool *
usePackAndUnpack : bool -> OperateResult<byte[]>
override ReadFromCoreServer :
send : byte[] *
hasResponseData : bool *
usePackAndUnpack : bool -> OperateResult<byte[]>
参数
- send
- 类型:SystemByte
完整的报文内容 - hasResponseData
- 类型:SystemBoolean
是否有等待的数据返回,默认为 true - usePackAndUnpack
- 类型:SystemBoolean
是否需要对命令重新打包,在重写PackCommandWithHeader(Byte)方法后才会有影响
返回值
类型:
OperateResultByte是否成功的结果对象
参见