黄学彪
2020-11-19 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a
ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
@@ -697,6 +697,7 @@
                        }
                        HdlThreadLogic.Current.RunThread(() =>
                        {
                            int sendCount = 0;
                            while (listDeviceBackContr.Parent != null)
                            {
                                bool hadSend = false;
@@ -712,7 +713,7 @@
                                        //发送获取状态的命令
                                        listContr[i].SendStatuComand();
                                        hadSend = true;
                                        System.Threading.Thread.Sleep(200);
                                        System.Threading.Thread.Sleep(300);
                                    }
                                }
                                if (hadSend == false)
@@ -720,7 +721,13 @@
                                    //如果已经全部回路都接收了网关回复,则不再二次发送
                                    break;
                                }
                                System.Threading.Thread.Sleep(2000);
                                sendCount++;
                                if (sendCount == 2)
                                {
                                    //就发2次
                                    break;
                                }
                                System.Threading.Thread.Sleep(5000);
                            }
                        }, ShowErrorMode.NO);
                    }