I need to transfer some files from the pc's where drivers are running to the pc of the main Scada.
I have not found any function that allows me to send the file from the drive whenever I want but, on the other hand, I have seen that there is a function call "requestFileTransfer" that allows that but from the server. I have coded this in a new manager, cos my intend is to request all the files in that manager:
Code: Select all
do
{
ManagerIdentifier id = ManagerIdentifier(EVENT_MAN, 0, 10);
this->requestFileTransfer(id, "File.xml");
this->requestFileTransfer(id, "AnotherFile.xml");
std::this_thread::sleep_for(std::chrono::seconds(60));
} while (!doExit);
EDIT: I have putted the files into the directory where the driver exe is and into the root path of the driver.