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())