JLChen
2021-01-05 f500e14c0a994487070380c50c85e0929cbc8e63
Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs
@@ -19,7 +19,7 @@
            //        System.Threading.Thread.Sleep (10 * 1000);
            //        if (CommonPage.IsRemote) {
            //            Control.ControlBytesSend (Command.ReadRemark, 0, 0, new byte [] { }, SendCount.Zero);
            //            Console.WriteLine ("心跳包");
            //            Utlis.WriteLine ("心跳包");
            //        }
            //    }
            //});
@@ -29,10 +29,10 @@
            //    while (true) {
            //        System.Threading.Thread.Sleep (10 * 1000);
            //        if (CommonPage.IsRemote) {
            //            Console.WriteLine ("心跳包");
            //            Utlis.WriteLine ("心跳包");
            //            byte [] backBytes =  Control.ControlBytesSendHasReturn (Command.ReadRemark, 0, 0, new byte [] { });
            //            if (backBytes != null) {
            //                Console.WriteLine ("心跳包 收到回复");
            //                Utlis.WriteLine ("心跳包 收到回复");
            //            }
                        
            //        }
@@ -178,7 +178,7 @@
            byte [] bytes = null;
            var dateTime = DateTime.Now;
            System.Threading.Tasks.Task.Run (() => {
                bytes = new System.Net.WebClient { Proxy = null }.DownloadData ("http://www.baidu.com");
                bytes = new System.Net.WebClient { Proxy = null }.DownloadData ("https://smarth-api.havells.com");
            });
            while ((DateTime.Now - dateTime).TotalMilliseconds < 8000) {
                System.Threading.Thread.Sleep (100);
@@ -277,7 +277,7 @@
                    }
                }
            } catch (Exception ex) {
                Console.WriteLine (ex.Message);
                Utlis.WriteLine (ex.Message);
            } finally {
                if (!result) {
                    Application.RunOnMainThread (() => {