We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b9089 commit 685f3cbCopy full SHA for 685f3cb
minicps/devices.py
@@ -242,7 +242,7 @@ def send(self, what, value, address):
242
else:
243
return self._protocol._send(what, value, address)
244
245
- def recieve(self, what, address):
+ def recieve(self, what, address, **kwargs):
246
"""Receive (read) a value from another network host.
247
248
:param tuple what: field[s] identifier[s]
minicps/protocols.py
@@ -95,7 +95,7 @@ def _send(self, what, value, address):
95
96
print '_send: please override me.'
97
98
- def _receive(self, what, address):
+ def _receive(self, what, address, **kwargs):
99
"""Receive (read) a value from another host.
100
101
:address: to receive from
@@ -380,7 +380,7 @@ def _send(self, what, value, address='localhost:44818'):
380
except Exception as error:
381
print 'ERROR enip _send: ', error
382
383
- def _receive(self, what, address='localhost:44818'):
+ def _receive(self, what, address='localhost:44818', **kwargs):
384
385
386
It is a blocking operation the parent process will wait till the child
@@ -607,7 +607,6 @@ def _stop_server(cls, server):
607
print 'ERROR stop modbus server: ', error
608
609
610
- # TODO: implement it
611
def _send(self, what, value, address='localhost:502'):
612
"""Send (write) a value to another host.
613
0 commit comments