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
8df89ee4
Commit
8df89ee4
authored
Apr 20, 2015
by
Olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more robust string parsing, add commodity methods
parent
bacd3d05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
opcua/uatypes.py
opcua/uatypes.py
+23
-0
No files found.
opcua/uatypes.py
View file @
8df89ee4
...
...
@@ -198,6 +198,8 @@ class Guid(object):
g
.
uuid
=
uuid
.
UUID
(
bytes
=
data
.
read
(
16
))
return
g
def
__eq__
(
self
,
other
):
return
isinstance
(
other
,
Guid
)
and
self
.
uuid
==
other
.
uuid
class
StatusCode
(
object
):
def
__init__
(
self
,
value
=
0
):
...
...
@@ -275,6 +277,8 @@ class NodeId(object):
if
not
el
:
continue
k
,
v
=
el
.
split
(
"="
)
k
=
k
.
strip
()
v
=
v
.
strip
()
if
k
==
"ns"
:
namespace
=
int
(
v
)
elif
k
==
"i"
:
...
...
@@ -385,6 +389,25 @@ class FourByteNodeId(NodeId):
def
__init__
(
self
,
identifier
,
namespace
=
0
):
NodeId
.
__init__
(
self
,
identifier
,
namespace
,
NodeIdType
.
FourByte
)
class
NumericNodeId
(
NodeId
):
def
__init__
(
self
,
identifier
,
namespace
=
0
):
NodeId
.
__init__
(
self
,
identifier
,
namespace
,
NodeIdType
.
Numeric
)
class
ByteStringNodeId
(
NodeId
):
def
__init__
(
self
,
identifier
,
namespace
=
0
):
NodeId
.
__init__
(
self
,
identifier
,
namespace
,
NodeIdType
.
ByteString
)
class
GuidNodeId
(
NodeId
):
def
__init__
(
self
,
identifier
,
namespace
=
0
):
NodeId
.
__init__
(
self
,
identifier
,
namespace
,
NodeIdType
.
Guid
)
class
StringNodeId
(
NodeId
):
def
__init__
(
self
,
identifier
,
namespace
=
0
):
NodeId
.
__init__
(
self
,
identifier
,
namespace
,
NodeIdType
.
String
)
ExpandedNodeId
=
NodeId
class
QualifiedName
(
object
):
...
...
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