点击或拖拽改变大小

MqttServerReportProgress 方法

向客户端发布一个进度报告的信息,仅用于同步网络的时候才支持进度报告,将进度及消息发送给客户端,比如你的服务器需要分成5个部分完成,可以按照百分比提示给客户端当前服务器发生了什么
Publish the information of a progress report to the client. The progress report is only supported when the network is synchronized. The progress and the message are sent to the client. For example, your server needs to be divided into 5 parts to complete. You can prompt the client according to the percentage. What happened to the server

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public void ReportProgress(
	MqttSession session,
	string topic,
	string payload
)

参数

session
类型:HslCommunication.MQTTMqttSession
当前的网络会话
topic
类型:SystemString
回发客户端的关键数据,可以是百分比字符串,甚至是自定义的任意功能
payload
类型:SystemString
数据消息
参见