Skip to content

Commit 484837b

Browse files
committed
Added support for multi tag send/receive using CIP/ENIP
1 parent 0997e2f commit 484837b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

minicps/protocols.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def _receive(self, what, address='localhost:44818', **kwargs):
464464
tag_string = ''
465465
tag_string = EnipProtocol._tuple_to_cpppo_tag(what)
466466

467-
print("DEBUG " + tag_string)
467+
# print("DEBUG " + tag_string)
468468

469469
cmd = shlex.split(
470470
self._client_cmd +
@@ -480,16 +480,16 @@ def _receive(self, what, address='localhost:44818', **kwargs):
480480

481481
# client.communicate is blocking
482482
raw_out = client.communicate()
483-
print('DEBUG1 ', raw_out)
483+
# print('DEBUG1 ', raw_out)
484484

485485
# value is stored as first tuple element
486486
# between a pair of square brackets
487487

488488
raw_string = raw_out[0]
489-
print("DEBUG2 " + str(raw_string))
489+
# print("DEBUG2 " + str(raw_string))
490490
raw_string = str(raw_string)
491491
out = raw_string[(raw_string.find('[') + 1):raw_string.find(']')]
492-
print("DEBUG4 " + out)
492+
# print("DEBUG4 " + out)
493493
return out
494494

495495
except Exception as error:

0 commit comments

Comments
 (0)