--- a/runtime/PLCObject.py Tue Oct 23 16:19:20 2018 +0200
+++ b/runtime/PLCObject.py Mon Oct 29 11:33:36 2018 +0100
@@ -33,6 +33,7 @@
from runtime.typemapping import TypeTranslator
from runtime.loglevels import LogLevelsDefault, LogLevelsCount
+from runtime.Stunnel import getPSKID
from runtime import MainWorker
if os.name in ("nt", "ce"):
@@ -438,6 +439,10 @@
return self.PLCStatus, map(self.GetLogCount, xrange(LogLevelsCount))
@RunInMain
+ def GetPLCID(self):
+ return getPSKID()
+
+ @RunInMain
def NewPLC(self, md5sum, data, extrafiles):
if self.PLCStatus in ["Stopped", "Empty", "Broken"]:
NewFileName = md5sum + lib_ext