|
|
@@ -46,10 +46,6 @@ namespace DataVAPI.Tool.IOT |
|
|
|
/// 客户端 |
|
|
|
/// </summary> |
|
|
|
public static MqttClient client { get; set; } |
|
|
|
/// <summary> |
|
|
|
/// 连接事件 |
|
|
|
/// </summary> |
|
|
|
public static Action<string> ConnectMqtt { get; set; } |
|
|
|
#endregion |
|
|
|
|
|
|
|
#region 发布或订阅主题或URL地址 |
|
|
@@ -364,7 +360,6 @@ namespace DataVAPI.Tool.IOT |
|
|
|
client.Subscribe(new string[] { par }, new byte[] { 0 }); |
|
|
|
}); |
|
|
|
UNConnectMqtt?.Invoke("重新连接阿里云MQTT成功!"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ce) |
|
|
|