Fix missing params MBus

This commit is contained in:
Samuele Locatelli
2025-09-11 07:18:48 +02:00
parent 8c0135f7b7
commit 09963e0b8f
2 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -3124,7 +3124,7 @@ namespace IOB_WIN_FORM.Iob
if (!DemoOut)
{
// SE server alive...
if (checkServerAlive || false)
if (checkServerAlive)
{
// chiamo URL!
string answ = callUrlWithPayload(lastUrl, payload, doAsync);
+14 -4
View File
@@ -219,8 +219,16 @@ namespace IOB_WIN_MBUS.IobModbusTCP
Random rnd = new Random();
int minWait = 40;
int maxWait = 60;
int.TryParse(getOptPar("minWait"), out minWait);
int.TryParse(getOptPar("maxWait"), out maxWait);
string sMinWait = getOptPar("minWait");
if (!string.IsNullOrEmpty(sMinWait))
{
int.TryParse(sMinWait, out minWait);
}
string sMaxWait = getOptPar("minWait");
if (!string.IsNullOrEmpty(sMaxWait))
{
int.TryParse(sMaxWait, out maxWait);
}
// valore non presente in vers default... se gestito fare override
Dictionary<string, string> outVal = new Dictionary<string, string>();
if (utils.CRB("enableTSVC"))
@@ -1111,8 +1119,10 @@ namespace IOB_WIN_MBUS.IobModbusTCP
#endif
var strMaxError = getOptPar("MAX_ERROR_READ");
int.TryParse(strMaxError, out maxErrorRead);
if (!string.IsNullOrEmpty(strMaxError))
{
int.TryParse(strMaxError, out maxErrorRead);
}
//if ((enableByApp || enableByIob) && !(disableByIob))
if (enabPzCnt)
{