feat(mtconnect): parse the write.enabled config block
This commit is contained in:
@@ -109,6 +109,12 @@ public sealed class MTConnectDriverOptions
|
||||
/// <c>/sample</c> streaming connection.
|
||||
/// </summary>
|
||||
public MTConnectReconnectOptions Reconnect { get; init; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Write-back settings. Off by default — the driver shipped read-only, and enabling this is
|
||||
/// only half the gate: the Agent's own <c>AllowPut</c> must be on too.
|
||||
/// </summary>
|
||||
public MTConnectWriteOptions Write { get; init; } = new();
|
||||
}
|
||||
|
||||
/// <summary>Background connectivity-probe knobs, mirroring <c>ModbusProbeOptions</c>.</summary>
|
||||
@@ -132,3 +138,16 @@ public sealed class MTConnectReconnectOptions
|
||||
/// <summary>Multiplier applied each retry. Default <c>2.0</c> doubles each step.</summary>
|
||||
public double BackoffMultiplier { get; init; } = 2.0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write-back knobs. A write is <b>observation injection</b> via the Agent's <c>AllowPut</c>
|
||||
/// surface — it sets what the Agent reports for a DataItem, not the machine itself (design §2.2).
|
||||
/// </summary>
|
||||
public sealed class MTConnectWriteOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether write-back is enabled. Default <c>false</c> — an existing
|
||||
/// deployment that never authors this block keeps today's read-only behaviour exactly.
|
||||
/// </summary>
|
||||
public bool Enabled { get; init; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user