Running this code gives me the following error (I don’t know how to pass Log Level as argument)
JavaScript
x
6
1
File "master.py", line 85, in main
2
stack_manager = opendnp3.StackManager()
3
File "/usr/lib/python2.7/dist-packages/opendnp3/pyopendnp3.py", line 2049, in __init__
4
this = _pyopendnp3.new_StackManager(*args)
5
TypeError: new_StackManager() takes exactly 2 arguments (0 given)
6
The error is in line 85
JavaScript
1
3
1
stack_manager = opendnp3.StackManager()
2
stack_manager.AddTCPv4Client('tcpclient', phys_layer_settings, '127.0.0.1', 4999)
3
Advertisement
Answer
There’s a problem with that method. Instead use:
JavaScript
1
3
1
stack_manager = opendnp3.StackManager()
2
stack_manager.AddTCPClient('tcpclient', phys_layer_settings, '127.0.0.1', 4999)
3
There’s not much documentation, but after a ton of digging there was a re-write around a TCPv4 and TCPv6 method and it looks like they were left in a non-working state