MqttSyncClientPoolReadTopicPayloadAsync 方法 |
读取服务器的已经驻留的指定主题的消息内容
Read the topic list of all messages that have resided on the server
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<MqttClientApplicationMessage>> ReadTopicPayloadAsync(
string topic,
Action<long, long> receiveProgress = null
)
Public Function ReadTopicPayloadAsync (
topic As String,
Optional receiveProgress As Action(Of Long, Long) = Nothing
) As Task(Of OperateResult(Of MqttClientApplicationMessage))
public:
Task<OperateResult<MqttClientApplicationMessage^>^>^ ReadTopicPayloadAsync(
String^ topic,
Action<long long, long long>^ receiveProgress = nullptr
)
member ReadTopicPayloadAsync :
topic : string *
?receiveProgress : Action<int64, int64>
(* Defaults:
let _receiveProgress = defaultArg receiveProgress null
*)
-> Task<OperateResult<MqttClientApplicationMessage>>
参数
- topic
- 类型:SystemString
指定的主题消息 - receiveProgress (Optional)
- 类型:SystemActionInt64, Int64
结果进度报告
返回值
类型:
TaskOperateResultMqttClientApplicationMessage消息列表对象
参见