Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
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
1
Merge Requests
1
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
opcua-asyncio
Commits
2d243bb9
Commit
2d243bb9
authored
Dec 06, 2017
by
Mathias Lüdtke
Committed by
oroulet
Dec 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose load_type_definitions from Server
parent
874ce02d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
opcua/server/server.py
opcua/server/server.py
+8
-4
No files found.
opcua/server/server.py
View file @
2d243bb9
...
...
@@ -22,6 +22,7 @@ from opcua.client.client import Client
from
opcua.crypto
import
security_policies
from
opcua.common.event_objects
import
BaseEvent
from
opcua.common.shortcuts
import
Shortcuts
from
opcua.common.structures
import
load_type_definitions
from
opcua.common.xmlexporter
import
XmlExporter
from
opcua.common.xmlimporter
import
XmlImporter
from
opcua.common.ua_utils
import
get_nodes_of_namespace
...
...
@@ -278,8 +279,8 @@ class Server(object):
self
.
bserver
.
start
()
except
Exception
as
exp
:
self
.
iserver
.
stop
()
raise
exp
raise
exp
def
stop
(
self
):
"""
...
...
@@ -436,13 +437,13 @@ class Server(object):
def
export_xml_by_ns
(
self
,
path
,
namespaces
=
None
):
"""
Export nodes of one or more namespaces to an XML file.
Export nodes of one or more namespaces to an XML file.
Namespaces used by nodes are always exported for consistency.
Args:
server: opc ua server to use
path: name of the xml file to write
namespaces: list of string uris or int indexes of the namespace to export, if not provide all ns are used except 0
Returns:
"""
if
namespaces
is
None
:
...
...
@@ -522,3 +523,6 @@ class Server(object):
Returns:
"""
self
.
iserver
.
isession
.
add_method_callback
(
node
.
nodeid
,
callback
)
def
load_type_definitions
(
self
,
nodes
=
None
):
return
load_type_definitions
(
self
,
nodes
)
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