Browse Source

8787

样式分支
fyf 2 years ago
parent
commit
624dfa95dc
3 changed files with 10 additions and 5 deletions
  1. +5
    -0
      BPASmartClient.IoT/DataVClient.cs
  2. +4
    -4
      BPASmartClient.IoT/Model/IOT/IOTDevModel.cs
  3. +1
    -1
      BPASmartClient/App.config

+ 5
- 0
BPASmartClient.IoT/DataVClient.cs View File

@@ -72,6 +72,10 @@ namespace BPASmartClient.IoT
/// key值
/// </summary>
public Dictionary<string, string> keyValues = new Dictionary<string, string>();
/// <summary>
/// 维保通知
/// </summary>
public List<MaintainTable> maintainTables = new List<MaintainTable>();
#endregion

#region API调用
@@ -239,6 +243,7 @@ namespace BPASmartClient.IoT
});
if (dataVNode.Count > 0)
{
iOTDevSXModel.Maintain= Tools.JsonConvertTools(maintainTables);
iOTDevSXModel.NodeStatus = Tools.JsonConvertTools(new { data = dataVNode });
DeviceDataV.IOT_Publish(DeviceDataV.PubTopic, iOTDevSXModel.Tojson());
}


+ 4
- 4
BPASmartClient.IoT/Model/IOT/IOTDevModel.cs View File

@@ -82,10 +82,10 @@ namespace DataVAPI.Tool.IOT
/// 节点状态
/// </summary>
public string NodeStatus { get; set; }
///// <summary>
///// 运行日志
///// </summary>
//public string SZXX { get; set; }
/// <summary>
/// 维修保护
/// </summary>
public string Maintain { get; set; }
///// <summary>
///// 运行告警
///// </summary>


+ 1
- 1
BPASmartClient/App.config View File

@@ -19,7 +19,7 @@
<!--阿里云上报启动方式:API 或者 LOCAL-->
<!--API :通过客户端ID,调用接口查询“设备连接信息”-->
<!--LOCAL:直接使用下方本地“设备连接信息”-->
<add key="StartupMode" value="LOCAL"/>
<add key="StartupMode" value="API"/>
<add key="ProductKey" value="grgpECHSL7q"/>
<add key="DeviceName" value="qsqdzklb"/>
<add key="DeviceSecret" value="e2b300892c3e21469c8dc6c7c5c4430d"/>


Loading…
Cancel
Save