Merge branch 'master' into Feature/Giacovelli

This commit is contained in:
Samuele Locatelli
2022-05-13 11:44:55 +02:00
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -440,7 +440,7 @@ namespace IOB_WIN_NEXT
lgInfo(sVal);
// verifico se salvare
changed = checkSaveValue(MonIt, currVal, true);
changed = checkSaveValue(MonIt, currVal, true) || forceSend;
// cerco se non sia un dato filtrato in FLUXLOG...
bool isFiltered = opcUaParams.fluxLogVeto.Contains(MonIt.DisplayName);
if (isFiltered)
@@ -484,6 +484,7 @@ namespace IOB_WIN_NEXT
}
).ToList();
lgInfo($"Richiesta sendDataItemListToServer per {elencoDataItems.Count} dataItems");
// aspetta un tempo random da 10-100 ms...
Random rnd = new Random();
Task.Delay(rnd.Next(10, 100));
@@ -1302,6 +1303,7 @@ namespace IOB_WIN_NEXT
try
{
utils.callUrlNow($"{urlSaveDataItems}", rawData);
lgInfo($"Effettuata chiamata sendDataItemsList all'url {urlSaveDataItems}");
}
catch (Exception exc)
{
+4
View File
@@ -484,8 +484,12 @@ namespace IOB_WIN_NEXT
// spostare sotto in checkAndSendRaw ??? FIXME todo
if (changed)
{
lgTrace($"Invio variazione dataitem per {dataItemMem.Count} elementi");
sendDataItemListToServer(startNodeId);
}
else {
lgTrace("Nessuna variazione DataItem da trasmettere");
}
}
return changed;
}