Fix avvio/chiusura WPS
This commit is contained in:
Binary file not shown.
+1
-1
@@ -17,7 +17,7 @@
|
||||
<add key="doStartMemDump" value="false"/>
|
||||
<add key="doSampleMemory" value="false"/>
|
||||
<add key="basePrgMemPath" value="CNCMEMUSER"/>
|
||||
<add key="pingMsTimeout" value="350"/>
|
||||
<add key="pingMsTimeout" value="500"/>
|
||||
<add key="urlCallTOut" value="1500"/>
|
||||
<!-- ciclo corto x invio a server: ms -->
|
||||
<add key="timerIntMs" value="10"/>
|
||||
|
||||
+9
-11
@@ -6,6 +6,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Threading;
|
||||
//using OpenQA.Selenium.Chrome;
|
||||
|
||||
namespace IOB_WIN
|
||||
@@ -55,12 +56,8 @@ namespace IOB_WIN
|
||||
// impostazione URI di base
|
||||
baseUri = $"http://{IOBConf.cncIpAddr}";
|
||||
#if DEBUG
|
||||
// test completo funzionalità, da TOGLIERE in prod...
|
||||
//baseUri = "https://www.plus2net.com/javascript_tutorial/clock.php";
|
||||
baseUri = "http://cassera.steamware.net/prova.html";
|
||||
#endif
|
||||
// avvio driver...
|
||||
startDriver();
|
||||
#endif
|
||||
|
||||
// inizializzo LUT decodifica
|
||||
string jsonConf = getOptPar("LUT_CONF");
|
||||
@@ -117,16 +114,18 @@ namespace IOB_WIN
|
||||
{
|
||||
try
|
||||
{
|
||||
if (driver.SessionId == null)
|
||||
{
|
||||
startDriver();
|
||||
}
|
||||
startDriver();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
lgError(exc, "Eccezione in tryConnect");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// aspetto prima di riprovare...
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Avvio del WebDriver
|
||||
@@ -226,8 +225,7 @@ namespace IOB_WIN
|
||||
{
|
||||
// init a zero...
|
||||
B_input = 0;
|
||||
// inizio analisi...
|
||||
lgInfo("Chiamata readSemafori x IOB WebPageScraping!");
|
||||
// ciclo!
|
||||
try
|
||||
{
|
||||
string cKey = "";
|
||||
|
||||
Reference in New Issue
Block a user