From e56137e33ed5c77a485f9e83ee4b6534cfdf6432 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期一, 03 八月 2020 15:00:21 +0800 Subject: [PATCH] 2020-8-03-1 --- HDL_ON/DriverLayer/Target.cs | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/HDL_ON/DriverLayer/Target.cs b/HDL_ON/DriverLayer/Target.cs index f374e38..c7ae958 100644 --- a/HDL_ON/DriverLayer/Target.cs +++ b/HDL_ON/DriverLayer/Target.cs @@ -42,12 +42,18 @@ /// </summary> public byte DeviceID; + public byte[] GetGatewayIp_SendBytes; + /// <summary> /// 发送数据缓冲区 /// </summary> public byte [] SendBytes { get { - + if(GetGatewayIp_SendBytes!=null) + { + byte[] bytes = GetGatewayIp_SendBytes; + return bytes; + } if (2 + 9 + AddData.Length + 2 <= 81&&Command!=Command.SuperGatewayAgent) { byte [] bytes = new byte [16 + 9 + AddData.Length + 2]; @@ -151,5 +157,19 @@ /// </summary> public Command Command; + + + /// <summary> + /// 发送数据缓冲区 + /// </summary> + public byte[] SendBytesGetGatewayIP + { + get + { + return AddData; + } + } + + } } \ No newline at end of file -- Gitblit v1.8.0