MqttHelperExtraMqttReceiveData 方法 |
解析从MQTT接受的客户端信息,解析成实际的Topic数据及Payload数据
Parse the client information received from MQTT and parse it into actual Topic data and Payload data
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<string, byte[]> ExtraMqttReceiveData(
byte mqttCode,
byte[] data,
AesCryptography aesCryptography = null
)
Public Shared Function ExtraMqttReceiveData (
mqttCode As Byte,
data As Byte(),
Optional aesCryptography As AesCryptography = Nothing
) As OperateResult(Of String, Byte())
public:
static OperateResult<String^, array<unsigned char>^>^ ExtraMqttReceiveData(
unsigned char mqttCode,
array<unsigned char>^ data,
AesCryptography^ aesCryptography = nullptr
)
static member ExtraMqttReceiveData :
mqttCode : byte *
data : byte[] *
?aesCryptography : AesCryptography
(* Defaults:
let _aesCryptography = defaultArg aesCryptography null
*)
-> OperateResult<string, byte[]>
参数
- mqttCode
- 类型:SystemByte
MQTT的命令码 - data
- 类型:SystemByte
接收的MQTT原始的消息内容 - aesCryptography (Optional)
- 类型:HslCommunication.Core.SecurityAesCryptography
AES数据加密信息
返回值
类型:
OperateResultString,
Byte解析的数据结果信息
参见