Bläddra i källkod

8787

样式分支
fyf 2 år sedan
förälder
incheckning
624dfa95dc
3 ändrade filer med 10 tillägg och 5 borttagningar
  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 Visa fil

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


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


+ 4
- 4
BPASmartClient.IoT/Model/IOT/IOTDevModel.cs Visa fil

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


+ 1
- 1
BPASmartClient/App.config Visa fil

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


Laddar…
Avbryt
Spara