diff --git a/NewLife.Panasonic/Drivers/PanasonicDriver.cs b/NewLife.Panasonic/Drivers/PanasonicDriver.cs
index 4a2943d..c070074 100644
--- a/NewLife.Panasonic/Drivers/PanasonicDriver.cs
+++ b/NewLife.Panasonic/Drivers/PanasonicDriver.cs
@@ -1,7 +1,5 @@
using System.ComponentModel;
using NewLife.IoT.Protocols;
-using NewLife.Panasonic.Drivers;
-using NewLife.Serialization;
namespace NewLife.IoT.Drivers;
@@ -18,12 +16,12 @@ public class PanasonicDriver : ModbusDriver, IDriver
///
/// 逻辑设备
/// 设备节点
- /// 参数
+ /// 参数
///
- protected override Modbus CreateModbus(IDevice device, ModbusNode node, IDictionary parameters)
+ protected override Modbus CreateModbus(IDevice device, ModbusNode node, ModbusParameter parameter)
{
- var p = JsonHelper.Convert(parameters);
- if (p.Server.IsNullOrEmpty()) throw new ArgumentException("参数中未指定地址Server");
+ var p = parameter as ModbusTcpParameter;
+ if (p == null || p.Server.IsNullOrEmpty()) throw new ArgumentException("参数中未指定地址Server");
node.Parameter = p;
diff --git a/NewLife.Panasonic/NewLife.Panasonic.csproj b/NewLife.Panasonic/NewLife.Panasonic.csproj
index 6169d05..145f610 100644
--- a/NewLife.Panasonic/NewLife.Panasonic.csproj
+++ b/NewLife.Panasonic/NewLife.Panasonic.csproj
@@ -44,9 +44,9 @@
-
-
-
+
+
+