|
@@ -77,7 +77,15 @@ public class QTTManager
|
|
|
{
|
|
|
return client.Subscribe(topics, qosLevels);
|
|
|
}
|
|
|
-
|
|
|
+ /// <summary>
|
|
|
+ /// 退订主题
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="topics"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public ushort Unsubscribe(string[] topics)
|
|
|
+ {
|
|
|
+ return client.Unsubscribe(topics);
|
|
|
+ }
|
|
|
public Action OnConnecting;
|
|
|
/// <summary>
|
|
|
/// 使用当前设置连接到代理。
|