MqttSyncClientReadTopicPayload 方法 |
读取服务器的已经驻留的指定主题的消息内容
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 OperateResult<MqttClientApplicationMessage> ReadTopicPayload(
string topic,
Action<long, long> receiveProgress = null
)
Public Function ReadTopicPayload (
topic As String,
Optional receiveProgress As Action(Of Long, Long) = Nothing
) As OperateResult(Of MqttClientApplicationMessage)
public:
OperateResult<MqttClientApplicationMessage^>^ ReadTopicPayload(
String^ topic,
Action<long long, long long>^ receiveProgress = nullptr
)
member ReadTopicPayload :
topic : string *
?receiveProgress : Action<int64, int64>
(* Defaults:
let _receiveProgress = defaultArg receiveProgress null
*)
-> OperateResult<MqttClientApplicationMessage>
参数
- topic
- 类型:SystemString
指定的主题消息 - receiveProgress (Optional)
- 类型:SystemActionInt64, Int64
结果进度报告
返回值
类型:
OperateResultMqttClientApplicationMessage消息列表对象
参见