/********************************************************************************** Ubuntu python-opcua Test* 说明:* 测试一下python-opcua库。** 2017-12-22 深圳 南山平山村 曾剑锋********************************************************************************/一、Python Lib1. FreeOpcUa/python-opcuahttps://github.com/FreeOpcUa/python-opcua
二、Test Code1. Minimal client example: https://github.com/FreeOpcUa/python-opcua/blob/master/examples/client-minimal.py2. Minimal server example: https://github.com/FreeOpcUa/python-opcua/blob/master/examples/server-minimal.py
三、Run Code1. Server:root@localhost:/home/zengjf/opcua# python3 server-minimal.pyListening on 0.0.0.0:4840Cleanup client connection: ('127.0.0.1', 44822)2. Clientroot@localhost:/home/zengjf/opcua# python3 client-minimal.pyObjects node is: Node(TwoByteNodeId(i=84))Children of root are: [Node(NumericNodeId(i=85)), Node(NumericNodeId(i=86)), Node(NumericNodeId(i=87))]myvar is: Node(NumericNodeId(ns=2;i=2))
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!