Aumento periodi veto invio da setup
This commit is contained in:
Generated
+491
-491
File diff suppressed because it is too large
Load Diff
@@ -915,7 +915,7 @@ namespace IOB_WIN_NEXT
|
||||
{
|
||||
lgInfo("SERVER ONLINE in checkServerAlive");
|
||||
parentForm.commSrvActive = 1;
|
||||
dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec);
|
||||
dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec * 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -928,7 +928,7 @@ namespace IOB_WIN_NEXT
|
||||
else
|
||||
{
|
||||
// allungo periodo controllo...
|
||||
dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec * 3);
|
||||
dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec * 5);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -936,7 +936,7 @@ namespace IOB_WIN_NEXT
|
||||
lgInfo($"SERVER NOT RESPONDING (PING at {cIobConf.serverData.MPIP})");
|
||||
MPOnline = false;
|
||||
// imposto veto a 10 volte reinvio dati standard...
|
||||
dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec * 3);
|
||||
dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec * 5);
|
||||
utils.dtVetoSend = dtVetoPing;
|
||||
}
|
||||
}
|
||||
@@ -2872,8 +2872,7 @@ namespace IOB_WIN_NEXT
|
||||
// indico quanti allarmi
|
||||
foreach (var item in alarmMaps)
|
||||
{
|
||||
// inizializzo array status degli allarmi
|
||||
item.alarmsState = new int[item.size / 2];
|
||||
item.SetupData();
|
||||
// loggo
|
||||
lgInfo($"Decodifica aree alarmMap: {item.description} | {item.memAddr} x {item.size} byte | {item.messages} messaggi allarme");
|
||||
}
|
||||
@@ -4526,6 +4525,10 @@ namespace IOB_WIN_NEXT
|
||||
public bool sendAlarmVariations(string memAddr, int index, int lastStatus, int currStatus)
|
||||
{
|
||||
bool fatto = false;
|
||||
// confronto allarmi filtrato stile blink per bit status:
|
||||
// - allarmi che iniziano per # IGNORATI
|
||||
// - altri allarmi con un countdown da MAX_COUNTER_BLINK a 0 per il fronte di discesa
|
||||
|
||||
if (lastStatus != currStatus)
|
||||
{
|
||||
// invio GET del MemoryAddress, del banco e del valore currStatus
|
||||
|
||||
@@ -370,7 +370,7 @@ namespace IOB_WIN_NEXT
|
||||
if (answ)
|
||||
{
|
||||
lgInfo("SERVER ONLINE");
|
||||
utils.dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec);
|
||||
utils.dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec * 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -382,7 +382,7 @@ namespace IOB_WIN_NEXT
|
||||
else
|
||||
{
|
||||
// allungo periodo controllo...
|
||||
utils.dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec * 3);
|
||||
utils.dtVetoPing = DateTime.Now.AddMilliseconds(baseUtils.nextPauseSendMSec * 5);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user