first commit

This commit is contained in:
2026-10-22 14:31:58 +07:00
parent 55228b3772
commit 62d33e8ef0
24 changed files with 1073 additions and 25 deletions

View File

@@ -279,6 +279,16 @@ public class ScriptLogService : IDisposable
if (!ok) _conveyorPending = null;
}
/// <summary>
/// ASRS qua OPC UA: chỉ log lệnh gửi và lỗi bị từ chối ngay (HTTP).
/// Kết quả thực thi (hoàn thành / lỗi / timeout) đến qua notification "ASRS" từ server.
/// </summary>
public void LogAsrsOpcCommand(string command, string? @params = null)
=> Push(Line(CInfo, "INFO", "ASRS", command, _lang.T("→ gửi", "→ sent"), @params));
public void LogAsrsOpcRejected(string command, string? error)
=> Push(Line(CError, "ERR", "ASRS", command, _lang.T("✗ từ chối", "✗ rejected"), error));
// ── State handlers ────────────────────────────────────────────────────
private void OnImrChanged()