点击或拖拽改变大小

MqttHelperCalculateMqttRemainingLength 方法

根据接收到数据的字节列表,计算出MQTT剩余长度信息
Based on the byte list of the received data, calculate the remaining length information of the MQTT

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.9.1.0 (12.9.1.0)
语法
public static OperateResult<int> CalculateMqttRemainingLength(
	List<byte> buffer
)

参数

buffer
类型:System.Collections.GenericListByte
长度数据缓存

返回值

类型:OperateResultInt32
实际的数据长度
参见