Commit 5132c4ed authored by oroulet's avatar oroulet

add robotics example

parent ff54bc7f
import asyncio
import logging
import sys
sys.path.insert(0, "..")
from IPython import embed
from asyncua import ua, uamethod, Server
async def main():
logging.basicConfig(level=logging.INFO)
server = Server()
await server.init()
# import some nodes from xml
await server.import_xml("../schemas/UA-Nodeset/DI/Opc.Ua.Di.NodeSet2.xml")
await server.import_xml("../schemas/UA-Nodeset/Robotics/Opc.Ua.Robotics.NodeSet2.xml")
# starting!
async with server:
embed()
if __name__ == "__main__":
asyncio.run(main())
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