Commit 041b0055 authored by Ivan Tyagov's avatar Ivan Tyagov

Rename.

parent 101003e8
""" """
Simple script for OPCUA POC Simple script for OPCUA POC
""" """
import json import json
from erp5.component.module.Log import log from erp5.component.module.Log import log
try: try:
...@@ -13,8 +11,8 @@ except AttributeError: ...@@ -13,8 +11,8 @@ except AttributeError:
else: else:
data = json.loads(data) data = json.loads(data)
if 'node' in data.keys(): if 'node' in data.keys():
# log only set # log only set requests for now
node_id = data['node'] node_id = data['node']
node_value = data['val'] node_value = data['val']
#log(f"Received: {data}") log("Set '%s' = '%s'" %(node_id, node_value))
#log(f"Set '{node_id}' = '{node_value}'") # XXX: set to "ERP5 OPCUA Document" property
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>opcua_test</string> </value> <value> <string>ERP5Site_handleOPCUARequest</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment