点击或拖拽改变大小

MqttSyncClientReadTopicPayloadAsync 方法

读取服务器的已经驻留的指定主题的消息内容
Read the topic list of all messages that have resided on the server

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public Task<OperateResult<MqttClientApplicationMessage>> ReadTopicPayloadAsync(
	string topic,
	Action<long, long> receiveProgress = null
)

参数

topic
类型:SystemString
指定的主题消息
receiveProgress (Optional)
类型:SystemActionInt64, Int64
结果进度报告

返回值

类型:TaskOperateResultMqttClientApplicationMessage
消息列表对象
参见