@if (_loadError is not null)
{
@_loadError
}
else
{
@switch (_driverType)
{
case DriverTypeNames.Modbus:
break;
case DriverTypeNames.S7:
break;
case DriverTypeNames.AbCip:
break;
case DriverTypeNames.AbLegacy:
break;
case DriverTypeNames.TwinCAT:
break;
case DriverTypeNames.FOCAS:
break;
case DriverTypeNames.OpcUaClient:
break;
case DriverTypeNames.Galaxy:
break;
case DriverTypeNames.Sql:
break;
case DriverTypeNames.Mqtt:
break;
case DriverTypeNames.MTConnect:
break;
default:
No typed config form for driver type @_driverType.
break;
}
@* Galaxy + MQTT hold ONE connection per driver instance, so they author it here and
their device forms are informational. Every other driver splits the endpoint onto
the device (the v3 endpoint→DeviceConfig split). *@
@if (_driverType is DriverTypeNames.Galaxy or DriverTypeNames.Mqtt)
{
This driver holds a single connection, authored above. Test-connect lives on its
device — open the device modal to verify connectivity.
}
else
{
The connection endpoint + Test-connect live on the driver's device — open the device modal to author host/port and verify connectivity.
}
@if (_saveError is not null)
{
@_saveError
}
}