diff --git a/BPASmart.Model/PublishModel.cs b/BPASmart.Model/PublishModel.cs
index 264ed0d8..71bc9fe4 100644
--- a/BPASmart.Model/PublishModel.cs
+++ b/BPASmart.Model/PublishModel.cs
@@ -8,12 +8,35 @@ namespace BPASmart.Model
{
public class PublishModel
{
- public string DeviceName { get; set; }
- public string RealAddress { get; set; }
- public string VarName { get; set; }
- public string Value { get; set; }
+ ///
+ /// 设备名称
+ ///
+ public string DeviceName { get; set; } = string.Empty;
+
+ ///
+ /// 变量实际地址
+ ///
+ public string RealAddress { get; set; } = string.Empty;
+
+ ///
+ /// 变量名称
+ ///
+ public string VarName { get; set; } = string.Empty;
+
+ ///
+ /// 变量长度
+ ///
+ public int Length { get; set; } = 1;
+
+ ///
+ /// 变量当前值
+ ///
+ public string Value { get; set; } = string.Empty;
+
+ ///
+ /// 变量数据类型
+ ///
public EDataType DataType { get; set; }
- public int Sleep { get; set; }
}
}
diff --git a/BPASmart.Server/CommunicationServer.cs b/BPASmart.Server/CommunicationServer.cs
index 6cbb3917..cbe53ec2 100644
--- a/BPASmart.Server/CommunicationServer.cs
+++ b/BPASmart.Server/CommunicationServer.cs
@@ -14,7 +14,6 @@ namespace BPASmart.Server
public void Init()
{
- var tt = sizeof(bool);
BPASmartClient.Message.MessageLog.GetInstance.ShowDebugLog("通讯模块初始化");
RedisHelper.GetInstance.ConnectAsync();
MqttInit();