Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
30 lines (24 loc) · 830 Bytes

File metadata and controls

30 lines (24 loc) · 830 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import sys
sys.path.insert(0, "..")
import time
import logging
from IPython import embed
from opcua import Client
from opcua import ua
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN)
client = Client("opc.tcp://opcua.demo-this.com:51210/UA/SampleServer")
try:
client.connect()
root = client.get_root_node()
objects = client.get_objects_node()
struct = client.get_node("ns=2;i=10239")
struct_array = client.get_node("ns=2;i=10323")
before = struct.get_value()
before_array = struct_array.get_value()
client.load_type_definitions() # scan server for custom structures and import them
after = struct.get_value()
after_array = struct_array.get_value()
embed()
finally:
client.disconnect()
Morty Proxy This is a proxified and sanitized view of the page, visit original site.