Skip to content

Commit

Permalink
Add getResponseSize() to IModbusFramer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Cougar authored and sjlongland committed Oct 21, 2015
1 parent e3cbe54 commit 76ad691
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pymodbus/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ def buildPacket(self, message):
raise NotImplementedException(
"Method not implemented by derived class")

def getResponseSize(self, message):
''' Returns expected packet size of response for this request
:returns: The expected packet size
'''
raise NotImplementedException(
"Method not implemented by derived class")


class IModbusSlaveContext(object):
'''
Expand Down

0 comments on commit 76ad691

Please sign in to comment.