From 54f0dbddb939e28a3537065ee8634ae9479aba74 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 28 May 2026 10:55:15 -0400 Subject: [PATCH] fix(drivers): align probe DriverType strings with AdminUI keys ModbusDriverProbe.DriverType was "Modbus" but the AdminUI's ModbusDriverPage persists DriverInstance.DriverType = "ModbusTcp". GalaxyDriverProbe used the runtime DriverTypeName constant ("GalaxyMxGateway") but the AdminUI saves "Galaxy". The probe DI lookup is case-insensitive but not name-insensitive, so Test Connect would fail to find a probe for these two drivers. --- .../ZB.MOM.WW.OtOpcUa.Driver.Galaxy/GalaxyDriverProbe.cs | 3 ++- .../ZB.MOM.WW.OtOpcUa.Driver.Modbus/ModbusDriverProbe.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/GalaxyDriverProbe.cs b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/GalaxyDriverProbe.cs index 202259a4..c9cc7afd 100644 --- a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/GalaxyDriverProbe.cs +++ b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/GalaxyDriverProbe.cs @@ -24,7 +24,8 @@ public sealed class GalaxyDriverProbe : IDriverProbe }; /// - public string DriverType => GalaxyDriverFactoryExtensions.DriverTypeName; // "GalaxyMxGateway" + // Matches DriverInstance.DriverType strings set by the AdminUI's GalaxyDriverPage. + public string DriverType => "Galaxy"; /// public async Task ProbeAsync(string configJson, TimeSpan timeout, CancellationToken ct) diff --git a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus/ModbusDriverProbe.cs b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus/ModbusDriverProbe.cs index f707ce22..665b8439 100644 --- a/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus/ModbusDriverProbe.cs +++ b/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus/ModbusDriverProbe.cs @@ -22,7 +22,7 @@ public sealed class ModbusDriverProbe : IDriverProbe }; /// - public string DriverType => "Modbus"; + public string DriverType => "ModbusTcp"; /// public async Task ProbeAsync(string configJson, TimeSpan timeout, CancellationToken ct)