xbee 값 설정기능 추가

This commit is contained in:
backuppc
2025-12-23 13:07:01 +09:00
parent 8499c1c5be
commit 35df73fd29
5 changed files with 209 additions and 91 deletions

View File

@@ -47,8 +47,11 @@ namespace Project
// XBee 연결
lock (connectobj)
{
ConnectSerialPort(PUB.XBE, PUB.setting.Port_XBE, PUB.setting.Baud_XBE,
if (VAR.BOOL[eVarBool.DISABLE_AUTOCONN_XBEE] == false)
{
ConnectSerialPort(PUB.XBE, PUB.setting.Port_XBE, PUB.setting.Baud_XBE,
eVarTime.LastConn_XBE, eVarTime.LastConnTry_XBE, null);
}
}
@@ -72,7 +75,7 @@ namespace Project
else if (PUB.BMS.IsValid == false)
{
var ts = VAR.TIME.RUN(eVarTime.LastConnTry_BAT);
if (ts.TotalSeconds > ( Math.Max(10,PUB.setting.interval_bms) * 2.5))
if (ts.TotalSeconds > (Math.Max(10, PUB.setting.interval_bms) * 2.5))
{
this.BeginInvoke(new Action(() =>
{