Fix missing params MBus
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user