Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 14b439e

Browse files
author
César Román
authored
feat(ia): add getNodeId() to OPCBrowseElement (#69)
new in 8.1.20 Closes: #68 Signed-off-by: César Román <thecesrom@gmail.com>
1 parent ca3e75e commit 14b439e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/com/inductiveautomation/ignition/common/opc/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def getElementType(self):
2929
# type: () -> BrowseElementType
3030
raise NotImplementedError
3131

32+
def getNodeId(self):
33+
# type: () -> String
34+
raise NotImplementedError
35+
3236
def getServerNodeId(self):
3337
# type: () -> ServerNodeId
3438
raise NotImplementedError
@@ -65,6 +69,10 @@ def getElementType(self):
6569
# type: () -> BrowseElementType
6670
pass
6771

72+
def getNodeId(self):
73+
# type: () -> String
74+
pass
75+
6876
def getServerNodeId(self):
6977
# type: () -> ServerNodeId
7078
pass
@@ -131,6 +139,10 @@ def getElementType(self):
131139
# type: () -> BrowseElementType
132140
return BrowseElementType.SERVER
133141

142+
def getNodeId(self):
143+
# type: () -> String
144+
return self.getServerNodeId().getNodeId()
145+
134146
def getServerNodeId(self):
135147
# type: () -> ServerNodeId
136148
return self.nodeId

src/system/opc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def browseServer(
6060
):
6161
# type: (...) -> List[Union[BasicOPCBrowseElement, PyOPCTag]]
6262
"""When called from a Vision Client, returns a list of
63-
OPCBrowseElement objects for the given Server. Otherwise returns a
63+
OPCBrowseElement objects for the given Server. Otherwise, returns a
6464
list of PyOPCTag.
6565
6666
Args:

0 commit comments

Comments
 (0)