File was renamed from HDL_ON/DAL/Net/Mqtt_A_Protocol.cs |
| | |
| | | // } |
| | | // 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 |