Skip to content

Commit c2d4239

Browse files
authored
Changed default framer for serial to be ModbusRtuFramer. (#948)
1 parent 3d322e7 commit c2d4239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymodbus/server/async_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,14 +726,14 @@ class ModbusSerialServer: # pylint: disable=too-many-instance-attributes
726726
handler = None
727727

728728
def __init__(
729-
self, context, framer=None, identity=None, **kwargs
729+
self, context, framer=ModbusRtuFramer, identity=None, **kwargs
730730
): # pragma: no cover
731731
"""Initialize the socket server.
732732
733733
If the identity structure is not passed in, the ModbusControlBlock
734734
uses its own empty structure.
735735
:param context: The ModbusServerContext datastore
736-
:param framer: The framer strategy to use
736+
:param framer: The framer strategy to use, default ModbusRtuFramer
737737
:param identity: An optional identify structure
738738
:param port: The serial port to attach to
739739
:param stopbits: The number of stop bits to use

0 commit comments

Comments
 (0)