From 80c737da280da244bb4f65ae9e8b1309be8b7017 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 12 八月 2020 16:14:56 +0800
Subject: [PATCH] 2020-08-12-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