Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
osie
Commits
041b0055
Commit
041b0055
authored
Jul 28, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename.
parent
101003e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
bt5/erp5_opcua/SkinTemplateItem/portal_skins/erp5_opcua/ERP5Site_handleOPCUARequest.py
...em/portal_skins/erp5_opcua/ERP5Site_handleOPCUARequest.py
+3
-5
bt5/erp5_opcua/SkinTemplateItem/portal_skins/erp5_opcua/ERP5Site_handleOPCUARequest.xml
...m/portal_skins/erp5_opcua/ERP5Site_handleOPCUARequest.xml
+1
-1
No files found.
bt5/erp5_opcua/SkinTemplateItem/portal_skins/erp5_opcua/
opcua_t
est.py
→
bt5/erp5_opcua/SkinTemplateItem/portal_skins/erp5_opcua/
ERP5Site_handleOPCUARequ
est.py
View file @
041b0055
"""
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
bt5/erp5_opcua/SkinTemplateItem/portal_skins/erp5_opcua/
opcua_t
est.xml
→
bt5/erp5_opcua/SkinTemplateItem/portal_skins/erp5_opcua/
ERP5Site_handleOPCUARequ
est.xml
View file @
041b0055
...
...
@@ -54,7 +54,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
opcua_t
est
</string>
</value>
<value>
<string>
ERP5Site_handleOPCUARequ
est
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment