opendnp3 python 测试主从
opendnp3 python testing master slave
运行 this code 给我以下错误(我不知道如何将日志级别作为参数传递)
File "master.py", line 85, in main
stack_manager = opendnp3.StackManager()
File "/usr/lib/python2.7/dist-packages/opendnp3/pyopendnp3.py", line 2049, in __init__
this = _pyopendnp3.new_StackManager(*args)
TypeError: new_StackManager() takes exactly 2 arguments (0 given)
错误在第 85 行
stack_manager = opendnp3.StackManager()
stack_manager.AddTCPv4Client('tcpclient', phys_layer_settings, '127.0.0.1', 4999)
那个方法有问题。而是使用:
stack_manager = opendnp3.StackManager()
stack_manager.AddTCPClient('tcpclient', phys_layer_settings, '127.0.0.1', 4999)
文档不多,但经过大量挖掘后,围绕 TCPv4 和 TCPv6 方法进行了重写,看起来它们处于非工作状态
运行 this code 给我以下错误(我不知道如何将日志级别作为参数传递)
File "master.py", line 85, in main
stack_manager = opendnp3.StackManager()
File "/usr/lib/python2.7/dist-packages/opendnp3/pyopendnp3.py", line 2049, in __init__
this = _pyopendnp3.new_StackManager(*args)
TypeError: new_StackManager() takes exactly 2 arguments (0 given)
错误在第 85 行
stack_manager = opendnp3.StackManager()
stack_manager.AddTCPv4Client('tcpclient', phys_layer_settings, '127.0.0.1', 4999)
那个方法有问题。而是使用:
stack_manager = opendnp3.StackManager()
stack_manager.AddTCPClient('tcpclient', phys_layer_settings, '127.0.0.1', 4999)
文档不多,但经过大量挖掘后,围绕 TCPv4 和 TCPv6 方法进行了重写,看起来它们处于非工作状态