Initial commit
This commit is contained in:
13
backend/minimal_test.py
Normal file
13
backend/minimal_test.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from asyncua import Client
|
||||
import asyncio
|
||||
|
||||
OPC_UA_URL = "opc.tcp://192.168.0.148:4840"
|
||||
|
||||
async def main():
|
||||
client = Client(OPC_UA_URL)
|
||||
endpoints = await client.connect_and_get_server_endpoints()
|
||||
for e in endpoints:
|
||||
print(e.EndpointUrl, e.SecurityPolicyUri, e.SecurityMode)
|
||||
|
||||
if __name__ == '__main__':
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user