Skip to content

Commit a5b2005

Browse files
committed
Changing protocols.py so that MiniCPS can be used with the latest version of CPPPO. This also solves the issue with the warning messages if CPPPO=4.3.4 is used
1 parent 484837b commit a5b2005

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

minicps/protocols.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def _receive(self, what, address='localhost:44818', **kwargs):
469469
cmd = shlex.split(
470470
self._client_cmd +
471471
'--log ' + self._client_log +
472-
'--address ' + address +
472+
' --print --address ' + address +
473473
' ' + tag_string
474474
)
475475
# print 'DEBUG enip _receive cmd shlex list: ', cmd
@@ -510,7 +510,7 @@ def _receive_multiple(self, what, address='localhost:44818', **kwargs):
510510
cmd = shlex.split(
511511
self._client_cmd +
512512
'--log ' + self._client_log +
513-
'--address ' + address +
513+
' --print --address ' + address +
514514
' ' + tag_string
515515
)
516516

@@ -520,7 +520,7 @@ def _receive_multiple(self, what, address='localhost:44818', **kwargs):
520520

521521
# client.communicate is blocking
522522
raw_out = client.communicate()
523-
#print 'DEBUG enip _receive_multiple raw_out: ', raw_out
523+
print(f'DEBUG enip _receive_multiple {raw_out}: ', raw_out)
524524

525525
# value is stored as first tuple element
526526
# between a pair of square brackets

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
'cryptography',
4444
'pyasn1',
4545
'pymodbus',
46-
'cpppo==4.3.4',
46+
'cpppo',
4747
'pandas',
4848
],
4949
# NOTE: specify files relative to the module path

0 commit comments

Comments
 (0)