wxr
2020-11-24 33470790ac0069c7734fb1a5b8b07350950c6dfe
HDL_ON/DAL/Mqtt/-弃用-Mqtt_A_Protocol.cs
File was renamed from HDL_ON/DAL/Net/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