增加PLC数据的日志记录

This commit is contained in:
liming 蔡
2026-08-14 19:28:16 +08:00
parent a17a969f25
commit 508647ecca
7 changed files with 61 additions and 1 deletions
+9
View File
@@ -65,5 +65,14 @@ namespace JY.Inspection.Frm
string payload = "测试数据";
await MqttSingleton.Instance.SendAsync(topic, payload);
}
private void btn_logPLCData_Click(object sender, EventArgs e)
{
byte[] bytes = new byte[] { 0x01, 0x02, 0x03, 0x04 };
LogHelper.LogPLCData("电池出站数据", bytes);
LogHelper.WriteErrorLine("错误日志");
}
}
}