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
d27dbfb9
Commit
d27dbfb9
authored
Jun 21, 2022
by
gstvg
Committed by
oroulet
Jun 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use union base type when creating new union
parent
56869ea2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
asyncua/common/structures104.py
asyncua/common/structures104.py
+6
-1
No files found.
asyncua/common/structures104.py
View file @
d27dbfb9
...
...
@@ -62,7 +62,12 @@ async def new_struct(
simple way to create a new structure
return the created data type node and the list of encoding nodes
"""
dtype
=
await
create_data_type
(
server
.
nodes
.
base_structure_type
,
idx
,
name
)
type_name
=
server
.
nodes
.
base_structure_type
if
is_union
:
type_name
=
server
.
nodes
.
base_union_type
dtype
=
await
create_data_type
(
type_name
,
idx
,
name
)
if
isinstance
(
idx
,
ua
.
NodeId
):
# user has provided a node id, we cannot reuse it
...
...
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