Ver a proveniência

数据发布实体修改

样式分支
pry há 2 anos
ascendente
cometimento
370a53a4d3
2 ficheiros alterados com 28 adições e 6 eliminações
  1. +28
    -5
      BPASmart.Model/PublishModel.cs
  2. +0
    -1
      BPASmart.Server/CommunicationServer.cs

+ 28
- 5
BPASmart.Model/PublishModel.cs Ver ficheiro

@@ -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; }
/// <summary>
/// 设备名称
/// </summary>
public string DeviceName { get; set; } = string.Empty;

/// <summary>
/// 变量实际地址
/// </summary>
public string RealAddress { get; set; } = string.Empty;

/// <summary>
/// 变量名称
/// </summary>
public string VarName { get; set; } = string.Empty;

/// <summary>
/// 变量长度
/// </summary>
public int Length { get; set; } = 1;

/// <summary>
/// 变量当前值
/// </summary>
public string Value { get; set; } = string.Empty;

/// <summary>
/// 变量数据类型
/// </summary>
public EDataType DataType { get; set; }
public int Sleep { get; set; }

}
}

+ 0
- 1
BPASmart.Server/CommunicationServer.cs Ver ficheiro

@@ -14,7 +14,6 @@ namespace BPASmart.Server

public void Init()
{
var tt = sizeof(bool);
BPASmartClient.Message.MessageLog.GetInstance.ShowDebugLog("通讯模块初始化");
RedisHelper.GetInstance.ConnectAsync();
MqttInit();


Carregando…
Cancelar
Guardar