Skip to content
Snippets Groups Projects
Commit 926c335a authored by kochalas's avatar kochalas Committed by al.schwinn
Browse files

[SIL-279] Remove hardcoded connection to PLC from SNAP7Connection.cpp

parent 5180f8db
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment