Skip to content

Commit 80c63fe

Browse files
committed
Add getResponseSize() to IModbusFramer interface
1 parent 2735d4d commit 80c63fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pymodbus/interfaces.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ def buildPacket(self, message):
151151
raise NotImplementedException(
152152
"Method not implemented by derived class")
153153

154+
def getResponseSize(self, message):
155+
''' Returns expected packet size of response for this request
156+
157+
:returns: The expected packet size
158+
'''
159+
raise NotImplementedException(
160+
"Method not implemented by derived class")
161+
154162

155163
class IModbusSlaveContext(object):
156164
'''

0 commit comments

Comments
 (0)