MqttHelperBuildMqttCommandByStream 方法 |
将一个数据打包成一个mqtt协议的内容
Pack a piece of data into a mqtt protocol
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.9.1.0 (12.9.1.0)
语法public static OperateResult<byte[]> BuildMqttCommandByStream(
byte head,
byte[] variableHeader,
Stream payLoad
)
Public Shared Function BuildMqttCommandByStream (
head As Byte,
variableHeader As Byte(),
payLoad As Stream
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildMqttCommandByStream(
unsigned char head,
array<unsigned char>^ variableHeader,
Stream^ payLoad
)
static member BuildMqttCommandByStream :
head : byte *
variableHeader : byte[] *
payLoad : Stream -> OperateResult<byte[]>
参数
- head
- 类型:SystemByte
控制码加标记码 - variableHeader
- 类型:SystemByte
可变头的字节内容 - payLoad
- 类型:System.IOStream
负载数据
返回值
类型:
OperateResultByte带有是否成功的结果对象
参见