diff --git a/CVCncLib/testSam.dll b/CVCncLib/testSam.dll index 7e66807c..62ddbcad 100644 Binary files a/CVCncLib/testSam.dll and b/CVCncLib/testSam.dll differ diff --git a/IOB-WIN/App.config b/IOB-WIN/App.config index 37fa72ac..115d8cf5 100644 --- a/IOB-WIN/App.config +++ b/IOB-WIN/App.config @@ -17,7 +17,7 @@ - + diff --git a/IOB-WIN/IobWPS.cs b/IOB-WIN/IobWPS.cs index 08a9f98b..e17698b6 100644 --- a/IOB-WIN/IobWPS.cs +++ b/IOB-WIN/IobWPS.cs @@ -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); + } } /// /// 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 = "";