fix(s7): numeric TSAP loads in form, shared TSAP conflict error, Test Connect read detects PUT/GET disabled, pin Int32 ms rounding (#632 #638)
Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
This commit is contained in:
+10
@@ -56,6 +56,10 @@
|
||||
<div class="form-text">Optional hex override, e.g. <code>03.01</code>. Not combinable with Connection type.</div>
|
||||
</div>
|
||||
</div>
|
||||
@if (_form.TsapConflictError() is { } tsapError)
|
||||
{
|
||||
<div class="text-danger small" role="alert">@tsapError</div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -183,6 +187,12 @@
|
||||
public string? ResilienceConfig { get; set; }
|
||||
public byte[] RowVersion { get; set; } = [];
|
||||
|
||||
/// <summary>The same error the driver factory raises for Remote TSAP + Connection type together; null when fine.</summary>
|
||||
public string? TsapConflictError() =>
|
||||
!string.IsNullOrWhiteSpace(RemoteTsap) && !string.IsNullOrWhiteSpace(ConnectionTypeText)
|
||||
? "S7 driver config " + S7DriverOptions.TsapConflictDetail
|
||||
: null;
|
||||
|
||||
public static FormModel FromOptions(S7DriverOptions o) => new()
|
||||
{
|
||||
Host = o.Host,
|
||||
|
||||
Reference in New Issue
Block a user