Commit 20b9b9fa authored by Philipp's avatar Philipp

Update opcua-server-fhi/minimal-server.py

parent 72fa111d
...@@ -9,6 +9,7 @@ import logging ...@@ -9,6 +9,7 @@ import logging
from asyncua import Server, ua from asyncua import Server, ua
from asyncua.common.methods import uamethod from asyncua.common.methods import uamethod
import argparse import argparse
import random
# command line handling # command line handling
parser = argparse.ArgumentParser(description='Run OPCUA Server.') parser = argparse.ArgumentParser(description='Run OPCUA Server.')
...@@ -67,5 +68,5 @@ async def main(): ...@@ -67,5 +68,5 @@ async def main():
await asyncio.sleep(1) await asyncio.sleep(1)
if __name__ == "__main__": if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.INFO)
asyncio.run(main(), debug=True) asyncio.run(main(), debug=False)
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