Skip to content

Commit e9fda05

Browse files
committed
Fix #316 support serial for url
1 parent 4b57def commit e9fda05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymodbus/client/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def connect(self):
649649
if self.socket:
650650
return True
651651
try:
652-
self.socket = serial.Serial(port=self.port,
652+
self.socket = serial.serial_for_url(self.port,
653653
timeout=self.timeout,
654654
bytesize=self.bytesize,
655655
stopbits=self.stopbits,

pymodbus/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __str__(self):
4141
return '[%s, version %s]' % (self.package, self.short())
4242

4343

44-
version = Version('pymodbus', 2, 5, 0)
44+
version = Version('pymodbus', 2, 5, 1, 'rc1')
4545

4646
version.__name__ = 'pymodbus' # fix epydoc error
4747

0 commit comments

Comments
 (0)