connectors/WAMP/__init__.py
changeset 2416 1ca207782dde
parent 2006 c4ba142bf3fb
child 2429 15f18dc8b56a
child 2434 07f48018b6f5
--- a/connectors/WAMP/__init__.py	Mon Oct 01 15:53:34 2018 +0300
+++ b/connectors/WAMP/__init__.py	Tue Oct 02 16:53:14 2018 +0300
@@ -36,6 +36,7 @@
 from autobahn.wamp.exception import TransportLost
 from autobahn.wamp.serializer import MsgPackSerializer
 
+from runtime import PlcStatus
 
 _WampSession = None
 _WampConnection = None
@@ -59,7 +60,7 @@
 PLCObjDefaults = {
     "StartPLC":          False,
     "GetTraceVariables": ("Broken", None),
-    "GetPLCstatus":      ("Broken", None),
+    "GetPLCstatus":      (PlcStatus.Broken, None),
     "RemoteExec":        (-1, "RemoteExec script failed!")
 }