Commit bcb6a021 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Add explicit no-security setting

parent aee3a604
from opcua import Server, uamethod
from opcua import Server, ua, uamethod
from datetime import datetime
idx = None
# Store the monitor_points in this dict
......@@ -38,7 +39,7 @@ def setup_server(url: str):
server.set_endpoint("opc.tcp://" + server_url + "/LOFAR2.0/FEMTO")
server.set_server_name("LOFAR2.0 Faulty Element Measurement To Opc UA (FEMTO)")
server.set_security_policy([ua.SecurityPolicyType.NoSecurity,])
# setup our own namespace, not really necessary but should as spec
uri = "http://lofar.eu"
idx = server.register_namespace(uri)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment