@Localizer["Sys.BatchEditConfirm"]
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
diff --git a/IoTGateway/Areas/BasicData/Views/DeviceVariable/Create.cshtml b/IoTGateway/Areas/BasicData/Views/DeviceVariable/Create.cshtml
index 528140f..3c606e5 100644
--- a/IoTGateway/Areas/BasicData/Views/DeviceVariable/Create.cshtml
+++ b/IoTGateway/Areas/BasicData/Views/DeviceVariable/Create.cshtml
@@ -10,6 +10,7 @@
+
diff --git a/IoTGateway/Areas/BasicData/Views/DeviceVariable/Details.cshtml b/IoTGateway/Areas/BasicData/Views/DeviceVariable/Details.cshtml
index 5d8a4ce..f71ed93 100644
--- a/IoTGateway/Areas/BasicData/Views/DeviceVariable/Details.cshtml
+++ b/IoTGateway/Areas/BasicData/Views/DeviceVariable/Details.cshtml
@@ -2,16 +2,17 @@
@inject IStringLocalizer Localizer;
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/IoTGateway/Areas/BasicData/Views/DeviceVariable/Edit.cshtml b/IoTGateway/Areas/BasicData/Views/DeviceVariable/Edit.cshtml
index 82f3c63..a425d32 100644
--- a/IoTGateway/Areas/BasicData/Views/DeviceVariable/Edit.cshtml
+++ b/IoTGateway/Areas/BasicData/Views/DeviceVariable/Edit.cshtml
@@ -10,6 +10,7 @@
+
diff --git a/IoTGateway/iotgateway.db b/IoTGateway/iotgateway.db
index 6059c2e39f74c8457a8e1c0ba26fde0086a84989..4f4e88cc9fb7e13512d801d17f19761c9a03551d 100644
GIT binary patch
delta 477
zcmZo@5N>D?o**r#&A`Cm1H|4y%mTz36LpLkwKpa#;g{m(Yh&Pl!heu|0e>BTEWaJU
z1m9=AvwW-g+BPdHWbmmdaWmUX8W|WF85$Xw8JZXy8ym&D=A~pN=7m%iq?+j&=ouPp
zUL_aB2sG&c1OF@jGyEI)C-avB&9dQ_;rq>ZkM97`q(yvkvds33I1S=%zNgoIPmgi?
zJv}B3Mk75&t|IPp9D1xNEdN<%F;8X|WvXS+V~J*8!TN|rg^L&H2L|>D3=AzkTI}N5
z+Ke6k+Y=3#W;1dqC_x-I{h%R}*z{f}M(*kLwoKB~XW28QwbvRk0WtITS|gSYUP0E6
zEUX`Sh54KKq{xpt7b^0+M79T$5T1K8w
zkc6zMGEkz=pQUJffg8(rW+t9#+cUjbbeTXwTQhx@4@(6fe-#rD?o**r##lXPe1H|4y%mT#f6LpLkwKgU!;g{gzTgAZtg#RG_0{%MwSbjTx
z3BJ#KXZcobR#fQY+q_CHiV>*f9s~a?{xkd=_$Tw10~Oiu%kcf?ySG^|;1FN)J-zmO
zdW_re=`m?As)aLh6>*>A&|^(u`Oh+oc`~yoQ!PU{OEmim)<-NVT)aTL8Q3RGR#edD
zYEjl=7uVKiY_HvJVZbz-aeBQill1gi_DpH*wMI-p%)GtUh^2#9kgb4;znPztua{4X
zcOtJ4&$R7g4lFUOlMNL9GIDM&aAWz-%*5BSJ=2Rtmx-l{ohx+uEFYE%o@zF(P)1(<
zP(@RDj_LgIEGpBt`?2^=@AqZ-Dgtx`Cs?wI8KOwlRC0R1KT9EZ1rtO-)>L-7f-g%x
TcQqqSKzaH0W1XojSW}*
diff --git a/Plugins/Drivers/DriverModbusMaster/ModbusMaster.cs b/Plugins/Drivers/DriverModbusMaster/ModbusMaster.cs
index f2e3a99..0eaf7e8 100644
--- a/Plugins/Drivers/DriverModbusMaster/ModbusMaster.cs
+++ b/Plugins/Drivers/DriverModbusMaster/ModbusMaster.cs
@@ -348,7 +348,7 @@ namespace DriverModbusMaster
else if (funCode == 4)
rawBuffers = _master.ReadInputRegisters(SlaveAddress, startAddress, count);
- var retBuffers = ChangeBuffersOrder(rawBuffers, ioarg.Endian);
+ var retBuffers = ChangeBuffersOrder(rawBuffers, ioarg.EndianType);
if (ioarg.ValueType == DataTypeEnum.AsciiString)
retBuffers = rawBuffers;
diff --git a/Plugins/Plugin/DeviceThread.cs b/Plugins/Plugin/DeviceThread.cs
index 70496bb..b0d1526 100644
--- a/Plugins/Plugin/DeviceThread.cs
+++ b/Plugins/Plugin/DeviceThread.cs
@@ -87,7 +87,8 @@ namespace Plugin
{
ID = item.ID,
Address = item.DeviceAddress,
- ValueType = item.DataType
+ ValueType = item.DataType,
+ EndianType = item.EndianType
};
var method = Methods.Where(x => x.Name == item.Method).FirstOrDefault();
if (method == null)
diff --git a/Plugins/PluginInterface/DriverAddressIoArgModel.cs b/Plugins/PluginInterface/DriverAddressIoArgModel.cs
index 21d4c02..8a5d00a 100644
--- a/Plugins/PluginInterface/DriverAddressIoArgModel.cs
+++ b/Plugins/PluginInterface/DriverAddressIoArgModel.cs
@@ -13,10 +13,10 @@ namespace PluginInterface
public object Value { get; set; }
public DataTypeEnum ValueType { get; set; }
- public EndianEnum Endian { get; set; }
+ public EndianEnum EndianType { get; set; }
public override string ToString()
{
- return $"变量ID:{ID},Address:{Address},Value:{Value},ValueType:{ValueType},Endian{Endian}";
+ return $"变量ID:{ID},Address:{Address},Value:{Value},ValueType:{ValueType},Endian:{EndianType}";
}
}
}
diff --git a/Plugins/PluginInterface/EndianEnum.cs b/Plugins/PluginInterface/EndianEnum.cs
index cd33efc..c510e9e 100644
--- a/Plugins/PluginInterface/EndianEnum.cs
+++ b/Plugins/PluginInterface/EndianEnum.cs
@@ -1,19 +1,14 @@
using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;
-namespace PluginInterface
-{
+namespace PluginInterface
+{
public enum EndianEnum
{
- [Display(Name = "无")]
- None,
- [Display(Name = "大端")]
- BigEndian,
- [Display(Name = "小端")]
- LittleEndian,
- [Display(Name = "大端交换")]
- BigEndianSwap,
- [Display(Name = "小端交换")]
- LittleEndianSwap
- }
+ [Display(Name = "无")] None = 0,
+ [Display(Name = "大端")] BigEndian,
+ [Display(Name = "小端")] LittleEndian,
+ [Display(Name = "大端交换")] BigEndianSwap,
+ [Display(Name = "小端交换")] LittleEndianSwap
+ }
}