Commit d4bc0b38 authored by Philipp's avatar Philipp

Update minimal-server.py

parent c708edef
...@@ -35,6 +35,9 @@ async def main(): ...@@ -35,6 +35,9 @@ async def main():
if bool(int(ipv6_enabled)): if bool(int(ipv6_enabled)):
server.set_endpoint(f"opc.tcp://[{ipv6}]:{port}/freeopcua/server/") server.set_endpoint(f"opc.tcp://[{ipv6}]:{port}/freeopcua/server/")
if xml is not None:
await server.import_xml(xml)
# set up our own namespace, not really necessary but should as spec # set up our own namespace, not really necessary but should as spec
uri = "http://examples.freeopcua.github.io" uri = "http://examples.freeopcua.github.io"
idx = await server.register_namespace(uri) idx = await server.register_namespace(uri)
......
Markdown is supported
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