From 1293fea19c6a2b558986856e301d5218c1979692 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 27 十一月 2020 14:08:43 +0800 Subject: [PATCH] Revert "20201127 接受bus数据修改完成,搜索网关、一端口修改完成" --- HDL_ON/DAL/DriverLayer/Control_TcpClient.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DriverLayer/Control_TcpClient.cs b/HDL_ON/DAL/DriverLayer/Control_TcpClient.cs similarity index 90% rename from HDL_ON/DriverLayer/Control_TcpClient.cs rename to HDL_ON/DAL/DriverLayer/Control_TcpClient.cs index f3ad0a0..01f3832 100644 --- a/HDL_ON/DriverLayer/Control_TcpClient.cs +++ b/HDL_ON/DAL/DriverLayer/Control_TcpClient.cs @@ -7,6 +7,11 @@ { public class Control_TcpClient { + /// <summary> + /// 閫氳ID + /// </summary> + public const int msg_id = 1; + //澹版槑IP锛岀鍙o紝鍜屼竴涓敤鏉ヨ繛鎺ョ殑Socket public string _ip; @@ -119,8 +124,21 @@ // MainPage.Log($"鎺ユ敹鏈嶅姟绔暟鎹�:{tcpDataString}"); //} + } } + #region A鍗忚 + /// <summary> + /// 鍙戦�丄鍗忚鏁版嵁 + /// </summary> + /// <param name="topic"></param> + public void SendData(string topic) + { + string topicString = "Topic:" + topic + "/r/n"; + string lenghtString = "Length:" + "/r/n" + "/r/n"; + } + + #endregion } } \ No newline at end of file -- Gitblit v1.8.0