Skip to content

Commit 2e169b6

Browse files
committed
Bump version to 2.2.0
Fix #366 Update failures in sql context Update Changelog Fix major minor version in example codes
1 parent b3281fe commit 2e169b6

File tree

13 files changed

+67
-49
lines changed

13 files changed

+67
-49
lines changed

CHANGELOG.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
Version 2.1.1
1+
Version 2.2.0
22
-----------------------------------------------------------
3+
**NOTE: Supports python 3.7, async client is now moved to pymodbus/client/asychronous**
4+
```
5+
from pymodbus.client.asynchronous import ModbusTcpClient
6+
```
7+
8+
* Support Python 3.7
9+
* Fix `AttributeError` when setting `interCharTimeout` for serial clients.
310
* Provide an option to disable inter char timeouts with Modbus RTU.
11+
* Fix SQLDbcontext always returning InvalidAddress error.
12+
* Fix SQLDbcontext update failure
13+
* Fix Binary payload example for endianess.
414

515
Version 2.1.0
616
-----------------------------------------------------------

examples/common/asynchronous_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def run_async_server():
105105
identity.VendorUrl = 'http://github.com/bashwork/pymodbus/'
106106
identity.ProductName = 'Pymodbus Server'
107107
identity.ModelName = 'Pymodbus Server'
108-
identity.MajorMinorRevision = '1.5'
108+
identity.MajorMinorRevision = '2.2.0'
109109

110110
# ----------------------------------------------------------------------- #
111111
# run the server you want

examples/common/callback_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def run_callback_server():
132132
identity.VendorUrl = 'http://github.com/bashwork/pymodbus/'
133133
identity.ProductName = 'pymodbus Server'
134134
identity.ModelName = 'pymodbus Server'
135-
identity.MajorMinorRevision = '1.0'
135+
identity.MajorMinorRevision = '2.2.0'
136136

137137
# ----------------------------------------------------------------------- #
138138
# run the server you want

examples/common/custom_datablock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def run_custom_db_server():
6868
identity.VendorUrl = 'http://github.com/bashwork/pymodbus/'
6969
identity.ProductName = 'pymodbus Server'
7070
identity.ModelName = 'pymodbus Server'
71-
identity.MajorMinorRevision = '1.0'
71+
identity.MajorMinorRevision = '2.2.0'
7272

7373
# ----------------------------------------------------------------------- #
7474
# run the server you want

examples/common/dbstore_update_server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def updating_writer(a):
6161
rand_addr = random.randint(0, 65000)
6262
log.debug("Writing to datastore: {}, {}".format(rand_addr, rand_value))
6363
# import pdb; pdb.set_trace()
64-
context[slave_id].setValues(writefunction, rand_addr, [rand_value])
64+
context[slave_id].setValues(writefunction, rand_addr, [rand_value],
65+
update=False)
6566
values = context[slave_id].getValues(readfunction, rand_addr, count)
6667
log.debug("Values from datastore: " + str(values))
6768

@@ -85,14 +86,15 @@ def run_dbstore_update_server():
8586
identity.VendorUrl = 'http://github.com/bashwork/pymodbus/'
8687
identity.ProductName = 'pymodbus Server'
8788
identity.ModelName = 'pymodbus Server'
88-
identity.MajorMinorRevision = '1.0'
89+
identity.MajorMinorRevision = '2.2.0'
8990

9091
# ----------------------------------------------------------------------- #
9192
# run the server you want
9293
# ----------------------------------------------------------------------- #
9394
time = 5 # 5 seconds delay
9495
loop = LoopingCall(f=updating_writer, a=(context,))
9596
loop.start(time, now=False) # initially delay by time
97+
loop.stop()
9698
StartTcpServer(context, identity=identity, address=("", 5020))
9799

98100

examples/common/modbus_payload_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def run_payload_server():
7878
identity.VendorUrl = 'http://github.com/bashwork/pymodbus/'
7979
identity.ProductName = 'Pymodbus Server'
8080
identity.ModelName = 'Pymodbus Server'
81-
identity.MajorMinorRevision = '1.5'
81+
identity.MajorMinorRevision = '2.2.0'
8282
# ----------------------------------------------------------------------- #
8383
# run the server you want
8484
# ----------------------------------------------------------------------- #

examples/common/synchronous_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def run_server():
105105
identity.VendorUrl = 'http://github.com/riptideio/pymodbus/'
106106
identity.ProductName = 'Pymodbus Server'
107107
identity.ModelName = 'Pymodbus Server'
108-
identity.MajorMinorRevision = '1.5'
108+
identity.MajorMinorRevision = '2.2.0'
109109

110110
# ----------------------------------------------------------------------- #
111111
# run the server you want

examples/common/updating_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def run_updating_server():
7878
identity.VendorUrl = 'http://github.com/bashwork/pymodbus/'
7979
identity.ProductName = 'pymodbus Server'
8080
identity.ModelName = 'pymodbus Server'
81-
identity.MajorMinorRevision = '1.0'
81+
identity.MajorMinorRevision = '2.2.0'
8282

8383
# ----------------------------------------------------------------------- #
8484
# run the server you want

examples/contrib/deviceinfo_showcase_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def run_server():
5555
identity.VendorUrl = 'http://github.com/riptideio/pymodbus/'
5656
identity.ProductName = 'Pymodbus Server'
5757
identity.ModelName = 'Pymodbus Server'
58-
identity.MajorMinorRevision = '1.5'
58+
identity.MajorMinorRevision = '2.2.0'
5959

6060
# ----------------------------------------------------------------------- #
6161
# Add an example which is long enough to force the ReadDeviceInformation

examples/gui/bottle/frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def RunDebugModbusFrontend(server, port=8080):
277277
identity.VendorUrl = 'http://github.com/bashwork/pymodbus/'
278278
identity.ProductName = 'Pymodbus Server'
279279
identity.ModelName = 'Pymodbus Server'
280-
identity.MajorMinorRevision = '1.0'
280+
identity.MajorMinorRevision = '2.2.0'
281281

282282
# ------------------------------------------------------------
283283
# initialize the datastore

0 commit comments

Comments
 (0)