| | |
| | | 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 { |
| | |
| | | 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 + ","; |