|
|
@@ -44,6 +44,11 @@ namespace HBLConsole.Business |
|
|
|
/// </summary> |
|
|
|
IControl control; |
|
|
|
|
|
|
|
public void Close() |
|
|
|
{ |
|
|
|
IOTDev.GetInstance().Disconnect(); |
|
|
|
} |
|
|
|
|
|
|
|
public T GetTypeValue<T>(string str) |
|
|
|
{ |
|
|
|
return (T)control.GetT().GetType().GetProperty(str).GetValue(control.GetT(), null); |
|
|
@@ -112,7 +117,7 @@ namespace HBLConsole.Business |
|
|
|
{ |
|
|
|
ThreadOperate.GetInstance.StartLong(new Action(() => |
|
|
|
{ |
|
|
|
if (iSLinks && GeneralConfig.DeviceType.ToString() == "MORKS") |
|
|
|
if (iSLinks && GeneralConfig.DeviceType.ToString() == "MO7RKS") |
|
|
|
{ |
|
|
|
SetData(); |
|
|
|
IOTDev.GetInstance().IOT_Publish(IOTDev.PubTopic, iOTDevSXModel.Tojson()); |
|
|
|