From 926c335a888fd2a0f88125453f5bf57fe9e1052c Mon Sep 17 00:00:00 2001
From: kochalas <konstantinos.chalas@cern.ch>
Date: Thu, 7 Sep 2017 16:54:36 +0200
Subject: [PATCH] [SIL-279] Remove hardcoded connection to PLC from
 SNAP7Connection.cpp

---
 .../interface/communication/SNAP7Connection.cpp                  | 1 -
 1 file changed, 1 deletion(-)

diff --git a/silecs-communication-cpp/src/silecs-communication/interface/communication/SNAP7Connection.cpp b/silecs-communication-cpp/src/silecs-communication/interface/communication/SNAP7Connection.cpp
index d586594..5ff8055 100644
--- a/silecs-communication-cpp/src/silecs-communication/interface/communication/SNAP7Connection.cpp
+++ b/silecs-communication-cpp/src/silecs-communication/interface/communication/SNAP7Connection.cpp
@@ -260,7 +260,6 @@ int SNAP7Connection::writeIO(PLC* thePLC, unsigned long address, unsigned long o
             //DATA topic makes sense with SEND one
             if (SEND & Log::topics_) LOG(DATA) << "Write data, address: " << address << ", ofs: " << offset << ", byte-size: " << size;
 
-            Cli_ConnectTo(sendClient_, "10.11.34.77", 0, 2);
             err = Cli_ABWrite(sendClient_, (int)address, (int)size, (void *)pBuffer);
             checkError(thePLC, err, false); // close the connection, will try again at the next access
       }
-- 
GitLab