MqttSyncClientReadFromCoreServer 方法 (CommunicationPipe, Byte, Boolean, Boolean) |
使用指定的管道来进行数据通信,发送原始数据到管道,然后从管道接收相关的数据返回,本方法无锁
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override OperateResult<byte[]> ReadFromCoreServer(
CommunicationPipe pipe,
byte[] send,
bool hasResponseData = true,
bool usePackHeader = true
)
Public Overrides Function ReadFromCoreServer (
pipe As CommunicationPipe,
send As Byte(),
Optional hasResponseData As Boolean = true,
Optional usePackHeader As Boolean = true
) As OperateResult(Of Byte())
public:
virtual OperateResult<array<unsigned char>^>^ ReadFromCoreServer(
CommunicationPipe^ pipe,
array<unsigned char>^ send,
bool hasResponseData = true,
bool usePackHeader = true
) override
abstract ReadFromCoreServer :
pipe : CommunicationPipe *
send : byte[] *
?hasResponseData : bool *
?usePackHeader : bool
(* Defaults:
let _hasResponseData = defaultArg hasResponseData true
let _usePackHeader = defaultArg usePackHeader true
*)
-> OperateResult<byte[]>
override ReadFromCoreServer :
pipe : CommunicationPipe *
send : byte[] *
?hasResponseData : bool *
?usePackHeader : bool
(* Defaults:
let _hasResponseData = defaultArg hasResponseData true
let _usePackHeader = defaultArg usePackHeader true
*)
-> OperateResult<byte[]>
参数
- pipe
- 类型:HslCommunication.Core.PipeCommunicationPipe
管道信息 - send
- 类型:SystemByte
等待发送的数据 - hasResponseData (Optional)
- 类型:SystemBoolean
是否需要返回的数据 - usePackHeader (Optional)
- 类型:SystemBoolean
[缺少 "M:HslCommunication.MQTT.MqttSyncClient.ReadFromCoreServer(HslCommunication.Core.Pipe.CommunicationPipe,System.Byte[],System.Boolean,System.Boolean)" 的 <param name="usePackHeader"/> 文档]
返回值
类型:
OperateResultByte是否成功的结果对象
参见