From 33470790ac0069c7734fb1a5b8b07350950c6dfe Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 24 十一月 2020 15:51:31 +0800 Subject: [PATCH] 20201124,整理mqtt订阅 --- HDL_ON/DAL/Mqtt/-弃用-Mqtt_A_Protocol.cs | 27 --------------------------- 1 files changed, 0 insertions(+), 27 deletions(-) diff --git a/HDL_ON/DAL/Net/Mqtt_A_Protocol.cs "b/HDL_ON/DAL/Mqtt/-\345\274\203\347\224\250-Mqtt_A_Protocol.cs" similarity index 83% rename from HDL_ON/DAL/Net/Mqtt_A_Protocol.cs rename to "HDL_ON/DAL/Mqtt/-\345\274\203\347\224\250-Mqtt_A_Protocol.cs" index d7dd0dd..2097379 100644 --- a/HDL_ON/DAL/Net/Mqtt_A_Protocol.cs +++ "b/HDL_ON/DAL/Mqtt/-\345\274\203\347\224\250-Mqtt_A_Protocol.cs" @@ -132,33 +132,6 @@ // } // try // { -// int readCount = 0; -// BusSocket.Stop(); -// System.Threading.Thread.Sleep(1000); -// BusSocket.Start(); -// System.Threading.Thread.Sleep(1000); -// Control.ReadGatewayIPAddress(); -// while (true) -// { -// if (!string.IsNullOrEmpty(mqttClientIP)) -// { -// break; -// } -// else if (readCount > 10) -// { -// onConnection = false; -// return; -// } -// else -// { -// Control.ReadGatewayIPAddress(); -// System.Threading.Thread.Sleep(200); -// } -// } -// BusSocket.Stop(); -// //System.Threading.Thread.Sleep(1000); -// //BusSocket.Start(6000); -// //System.Threading.Thread.Sleep(1000); // var options = new MqttClientOptionsBuilder()//MQTT杩炴帴鍙傛暟濉厖 // .WithClientId(Guid.NewGuid().ToString().Substring(0, 5))//瀹㈡埛绔疘D -- Gitblit v1.8.0