From ed3bfb7462d44747230437717e8673a5192f833f Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期一, 30 十一月 2020 20:34:51 +0800 Subject: [PATCH] 2020-11-30-2 --- HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/VoicePanelSceneListPage.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/VoicePanelSceneListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/VoicePanelSceneListPage.cs index 24ad65d..1de6417 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/VoicePanelSceneListPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/VoicePanelSceneListPage.cs @@ -59,9 +59,9 @@ }; divTopTitle.AddChidren(btnTitle); - DriverLayer.Control.Ins.reportIp = device.ip_address; - //DriverLayer.Control.ins.OpenTcpClent(); - DriverLayer.Control.Ins.myTcpClient.ReceiveEvent = ReceiveEvent; + DriverLayer.Control.ins.reportIp = device.ip_address; + DriverLayer.Control.ins.ChangeCommunicationMode(DriverLayer.CommunicationMode.tcp_local_client); + DriverLayer.Control.ins.myTcpClient.ReceiveEvent = ReceiveEvent; contentView = new VerticalRefreshLayout() { @@ -84,8 +84,8 @@ Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(582), Width = Application.GetRealWidth(220), - Height = Application.GetRealWidth(44), - Radius = (uint)Application.GetRealWidth(22), + Height = Application.GetRealHeight(44), + Radius = (uint)Application.GetRealHeight(22), BackgroundColor = CSS_Color.MainColor, TextColor = CSS_Color.MainBackgroundColor, TextSize = CSS_FontSize.SubheadingFontSize, @@ -180,7 +180,7 @@ var sendJson = JsonConvert.SerializeObject(sendingObject); var sendBytes = System.Text.Encoding.ASCII.GetBytes(sendJson); - DriverLayer.Control.Ins.myTcpClient.SendMessage(sendBytes); + DriverLayer.Control.ins.myTcpClient.SendMessage(sendBytes); } /// <summary> -- Gitblit v1.8.0