diff --git a/BPASmartClient.DRCoffee/CoffeeMachine.cs b/BPASmartClient.DRCoffee/CoffeeMachine.cs
index 37b886dc..fe7df2c0 100644
--- a/BPASmartClient.DRCoffee/CoffeeMachine.cs
+++ b/BPASmartClient.DRCoffee/CoffeeMachine.cs
@@ -243,5 +243,9 @@ namespace BPASmartClient.DRCoffee
public override void WriteData(string address, object value)
{
}
+
+ //public override void ReadData(string address)
+ //{
+ //}
}
}
diff --git a/BPASmartClient.Device/BaseDevice.cs b/BPASmartClient.Device/BaseDevice.cs
index c511c86f..df5ad193 100644
--- a/BPASmartClient.Device/BaseDevice.cs
+++ b/BPASmartClient.Device/BaseDevice.cs
@@ -13,6 +13,8 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
+using BPASmartClient.Model.单片机;
+using BPASmartClient.EventBus;
namespace BPASmartClient.Device
{
@@ -110,6 +112,11 @@ namespace BPASmartClient.Device
#endregion
+ ///
+ /// 写控制
+ ///
+ ///
+ ///
public void WriteControl(string address, object value)
{
if (peripherals != null)
@@ -536,5 +543,6 @@ namespace BPASmartClient.Device
IEnumerable property = from pi in t.GetProperties() where pi.Name.ToLower() == field.ToLower() select pi;
return property.First().GetValue(info, null);
}
+
}
}
diff --git a/BPASmartClient.Helper/ExpandMethod.cs b/BPASmartClient.Helper/ExpandMethod.cs
index 97336f6e..4265b59c 100644
--- a/BPASmartClient.Helper/ExpandMethod.cs
+++ b/BPASmartClient.Helper/ExpandMethod.cs
@@ -79,37 +79,20 @@ namespace BPASmartClient.Helper
}
-
- /////
- ///// 保存数据
- /////
- //public static void Save(this T ot)
- //{
- // string outjson = JsonConvert.SerializeObject(ot);
- // var str = ot.GetType().GenericTypeArguments;
- // if (str != null && str.Length > 0)
- // {
- // File.WriteAllText(LocaPath.GetInstance.Getpath(str[0].Name), outjson);
- // }
-
- //}
-
- /////
- ///// 获取保存的数据
- /////
- //public static void Read(this object ot)
- //{
- // var str = ot.GetType().GenericTypeArguments;
- // if (str != null && str.Length > 0)
- // {
- // string pa = LocaPath.GetInstance.Getpath(str[0].Name);
- // if (File.Exists(pa))
- // {
- // string JsonString = File.ReadAllText(pa);
- // var result = JsonConvert.DeserializeObject