From 48dc77a381eb33b0057ad496c02577806d2b5b5c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 30 五月 2022 17:53:41 +0800 Subject: [PATCH] 备份 --- Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs b/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs index 684043f..7ba7fa6 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs @@ -18,6 +18,7 @@ public static string FindGatewayChilrenIPAddress = new Net.NetWiFi ().BroadcastIpAddress.ToString (); public static bool LocalPhoneFindDevice = false; public static int searchTotal = 0; + public static int newDevice = 0; private static string ip="0.0.0.0"; public static System.Net.IPEndPoint EndPoint { get { @@ -97,6 +98,16 @@ try { List<byte> ButtonBkeyModelList = new List<byte> (); switch (command) { + case Command.readGatewayVision: + var visionString = MyEncodingGB2312.GetString (usefullBytes); + Console.WriteLine ($"褰撳墠缃戝叧鐗堟湰淇℃伅:{visionString}"); + break; + case Command.enjoyUpgradeACK://杩涘叆鍗囩骇妯″紡锛屽崌绾у嵃搴︾綉鍏筹紝2022-05-30 11:26:48 wxr + var deviceName = MyEncodingGB2312.GetString (usefullBytes); + Console.WriteLine ($"褰撳墠缃戝叧:{deviceName}"); + break; + + case Command.PushtoServer_DevMsg: #if DEBUG string pushBytesString = "PushtoServer_DevMsg : " + subnetID + "," + deviceID + ","; -- Gitblit v1.8.0