update log x disconnect

This commit is contained in:
Samuele Locatelli
2025-11-04 10:46:17 +01:00
parent a4e58015a7
commit 4e3a75b14e
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -2388,7 +2388,8 @@ namespace IOB_WIN_FORM.Iob
// init obj display
newDisplayData currDispData = new newDisplayData();
// controllo contatore invio "keepalive"... invio solo a scadenza
if (DateTime.Now.Subtract(lastDisconnCheck).TotalSeconds > utils.CRI("disconMaxSec"))
int disconnMaxSec = utils.CRI("disconMaxSec");
if (DateTime.Now.Subtract(lastDisconnCheck).TotalSeconds > disconnMaxSec)
{
// resetto tutti i valori BYTE IN/PREV/OUT... così invio macchina spenta...
B_input = 0;
@@ -2397,6 +2398,7 @@ namespace IOB_WIN_FORM.Iob
accodaSigIN(ref currDispData);
// update controllo
lastDisconnCheck = DateTime.Now;
lgInfo($"Send 00 | disconMaxSec: {disconnMaxSec}");
}
raiseRefresh(currDispData);
}
+1 -1
View File
@@ -37,7 +37,7 @@
<add key="nMaxSend" value="100" />
<add key="pingTestSec" value="5" />
<add key="watchdogMaxSec" value="90" />
<add key="disconMaxSec" value="60" />
<add key="disconMaxSec" value="30" />
<add key="defIOB" value="2999" />
<add key="pauseSendMSec" value="2000" />
<add key="sendStartFLog" value="false" />