From d8545fbd1b36a6766c57c987e5d89862b470fed9 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 03 九月 2020 09:46:29 +0800
Subject: [PATCH] 2020-09-03 1.修改风扇默认为关状态。2.Alexa添加设备时,去掉空调和通用开关选择添加支持。 3.场景增加通用开关添加和发送控制支持,Alexa 的场景同样增加通用开关的支持。
---
Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemWirelessGateway.cs | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemWirelessGateway.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemWirelessGateway.cs
index ef52c34..a0370e2 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemWirelessGateway.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemWirelessGateway.cs
@@ -176,7 +176,7 @@
textButton.Enable = false;
textButton.IsSelected = false;
MainPage.Loading.Hide ();
- System.Console.WriteLine ("OnePortWirelessFR Remark Update");
+ Utlis.WriteLine ("OnePortWirelessFR Remark Update");
} else {
textButton.Enable = true;
textButton.IsSelected = true;
@@ -1294,7 +1294,7 @@
};
spinnerband.AdapterStr = bandText;//.AddAdapter(bandText);
spinnerband.SelectedItemChanged += (sender, e) => {
- System.Console.WriteLine (e);
+ Utlis.WriteLine (e);
gatewayDevice.WirelessBand = (byte)e;
};
flRadioParameterBody.AddChidren (spinnerband);
@@ -1370,7 +1370,7 @@
};
spinnerChannel.AdapterStr = channelTextSpinner;//.AddAdapter(channelTextSpinner);
spinnerChannel.SelectedItemChanged += (sender, e) => {
- System.Console.WriteLine (e);
+ Utlis.WriteLine (e);
gatewayDevice.WirelessChannel = (byte)e;
};
flRadioParameterBody.AddChidren (spinnerChannel);
@@ -1437,7 +1437,7 @@
// }
//}
//MainPage.Loading.Hide ();
- //System.Console.WriteLine ("UpdateWirelessManage send.");
+ //Utlis.WriteLine ("UpdateWirelessManage send.");
};
#endregion
@@ -1982,7 +1982,7 @@
});
}
} catch (Exception ex) {
- Console.WriteLine (ex.Message);
+ Utlis.WriteLine (ex.Message);
} finally {
Application.RunOnMainThread (() => {
MainPage.Loading.Hide ();
@@ -2156,13 +2156,13 @@
Common common = CommonPage.DeviceList [i];
if (common.Type == DeviceType.MusicModel)
continue;
- //Console.WriteLine(common.DeviceID);
+ //Utlis.WriteLine(common.DeviceID);
if (common.SubnetID == subnetID && common.DeviceID != 0) {
int btnY = tipView.Y + (countDevcie + 1) * Application.GetRealHeight (80);
countDevcie++;
if (common.isMixBox) {
- Console.WriteLine ("IsMixBox");
+ Utlis.WriteLine ("IsMixBox");
countDevcie--;
continue;
}
@@ -2399,7 +2399,7 @@
countDevcie++;
if (common.isMixBox) {
- Console.WriteLine ("IsMixBox");
+ Utlis.WriteLine ("IsMixBox");
countDevcie--;
continue;
}
@@ -2489,7 +2489,7 @@
var common = listCommonEquipment [i];
if (common == null)
continue;
- Console.WriteLine ("璇诲彇璁惧鍚勪釜鍥炶矾鐨勫叿浣撲俊鎭紝褰撳墠璁惧鍚嶇О:" + common.Name + " 鍥炶矾鎬绘暟:" + common.LoopCount);
+ Utlis.WriteLine ("璇诲彇璁惧鍚勪釜鍥炶矾鐨勫叿浣撲俊鎭紝褰撳墠璁惧鍚嶇О:" + common.Name + " 鍥炶矾鎬绘暟:" + common.LoopCount);
byte bigClass = common.BigClass;
byte minClass = common.MinClass;
int count = common.LoopCount;
@@ -2530,7 +2530,7 @@
);
}
} catch (Exception ex) {
- Console.WriteLine (ex.ToString ());
+ Utlis.WriteLine (ex.ToString ());
} finally {
Application.RunOnMainThread (() => {
MainPage.Loading.Hide ();
@@ -2570,7 +2570,7 @@
ms.WriteByte (common.SubnetID);
ms.WriteByte (common.DeviceID);
}
- Console.WriteLine ("鎼滅储闈炵綉鍏宠澶囷紝缃戠粶鍦板潃鏄�:" + CommonPage.EndPoint.ToString ());
+ Utlis.WriteLine ("鎼滅储闈炵綉鍏宠澶囷紝缃戠粶鍦板潃鏄�:" + CommonPage.EndPoint.ToString ());
Control control = new Control ();
control.Send (new Target () {
IPEndPoint = CommonPage.EndPoint,
--
Gitblit v1.8.0