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

Rename.

parent 101003e8
"""
Simple script for OPCUA POC
"""
import json
from erp5.component.module.Log import log
try:
......@@ -13,8 +11,8 @@ except AttributeError:
else:
data = json.loads(data)
if 'node' in data.keys():
# log only set
# log only set requests for now
node_id = data['node']
node_value = data['val']
#log(f"Received: {data}")
#log(f"Set '{node_id}' = '{node_value}'")
log("Set '%s' = '%s'" %(node_id, node_value))
# XXX: set to "ERP5 OPCUA Document" property
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>opcua_test</string> </value>
<value> <string>ERP5Site_handleOPCUARequest</string> </value>
</item>
</dictionary>
</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