Skip to content

Commit bf0e1b6

Browse files
committed
Merge branch 'dev'
2 parents a5509e4 + adb4fc7 commit bf0e1b6

34 files changed

+660
-566
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
include:
3333
- python: '3.10'
3434
run_lint: true
35-
- python: '3.13'
35+
- python: '3.14'
3636
run_doc: true
3737
run_lint: true
3838
- os: macos-latest
@@ -101,10 +101,10 @@ jobs:
101101
timeout-minutes: 10
102102
steps:
103103
- uses: actions/[email protected]
104-
- uses: github/codeql-action/init@v3
104+
- uses: github/codeql-action/init@v4
105105
with:
106106
languages: python
107-
- uses: github/codeql-action/analyze@v3
107+
- uses: github/codeql-action/analyze@v4
108108

109109
ci_complete:
110110
name: ci_complete

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ __pycache__/
1616
prof/
1717
dist/pymodbus*
1818
build/html
19+
build/lib
1920
/pymodbus.egg-info/
2021
venv
2122
downloaded_files/
22-
pymodbus.log
2323
*.lock

API_changes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ API changes
22
===========
33
Versions (X.Y.Z) where Z > 0 e.g. 3.0.1 do NOT have API changes!
44

5+
API changes 3.12.0
6+
------------------
7+
- when using no_response_expected=, the call returns None
8+
59
API changes 3.11.0
610
------------------
711
- Revert wrong byte handling in v3.10.0

CHANGELOG.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ helps make pymodbus a better product.
77

88
:ref:`Authors`: contains a complete list of volunteers have contributed to each major version.
99

10+
Version 3.11.4
11+
--------------
12+
* Prepare 3.11.4 (#2815)
13+
* Update CodeQL to v4. (#2816)
14+
* Solve python3.14 problem (and mypy upgrade). (#2814)
15+
* More doc corrections. (#2813)
16+
* Correct wrong example in doc. (#2812)
17+
* update to pylint 4 (#2806)
18+
* ExceptionResponse for no_response_expected. (#2801)
19+
* Complete test for SimData / SimDevice. (#2798)
20+
* SimData and simDevice. (#2796)
21+
* Avoid windows CI problem with log testing. (#2797)
22+
* Update doc with 4.0 information. (#2795)
23+
* Make global DataType. (#2794)
24+
* Remove test pymodbus.log file. (#2793)
25+
* Update README. (#2788)
26+
* Activate ruff indent checking. (#2787)
27+
1028
Version 3.11.3
1129
--------------
1230
* Coverage 100% (using no cover, when needed). (#2783)

MAKE_RELEASE.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ Prepare/make release on dev.
1515
* Control / Update API_changes.rst
1616
* Update CHANGELOG.rst
1717
* Add commits from last release, but selectively !
18-
git log --oneline v3.8.4..HEAD > commit.log
19-
git log --pretty="%an" v3.8.4..HEAD | sort -uf > authors.log
18+
git log --oneline v3.11.4..HEAD > commit.log
19+
git log --pretty="%an" v3.11.4..HEAD | sort -uf > authors.log
2020
update AUTHORS.rst and CHANGELOG.rst
2121
cd doc; ./build_html
2222
* rm -rf build/* dist/*
2323
* python3 -m build
24-
* pypi-alias pymodbus_ha_core
2524
* twine check dist/*
2625
* Commit, push and merge.
2726
* Wait for CI to complete
@@ -42,6 +41,7 @@ Prepare/make release on dev.
4241
* git checkout v3.7.0dev0
4342
* rm -rf build/* dist/*
4443
* python3 -m build
44+
* pypi-alias pymodbus_ha_core
4545
* twine upload dist/* (upload to pypi)
4646
* Double check Read me docs are updated
4747
* trigger build https://readthedocs.org/projects/pymodbus/builds/

README.rst

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ as well as the
3535
`API_changes <https://github.com/pymodbus-dev/pymodbus/blob/dev/API_changes.rst>`_
3636
files.
3737

38-
Current release is `3.11.3 <https://github.com/pymodbus-dev/pymodbus/releases/tag/v3.11.3>`_.
38+
Current release is `3.11.4 <https://github.com/pymodbus-dev/pymodbus/releases/tag/v3.11.4>`_.
3939

4040
Bleeding edge (not released) is `dev <https://github.com/pymodbus-dev/pymodbus/tree/dev>`_.
4141

@@ -48,25 +48,6 @@ Source code on `github <https://github.com/pymodbus-dev/pymodbus>`_
4848

4949
Full documentation for newest releases as well as the bleeding edge (dev) `readthedocs <https://pymodbus.readthedocs.io>`_
5050

51-
pymodbus is maintained in 2 versions:
52-
- pymodbus, the official library
53-
- pymodbus_ha_core
54-
55-
Pymodbus_ha_core
56-
----------------
57-
`Pymodbus_ha_core <https://pypi.org/project/pymodbus-ha-core/>`_ is
58-
an alias to pymodbus, available on pypi.org.
59-
60-
Being an alias means it is 100% the same as pymodbus, without any extra
61-
code, just another name.
62-
63-
This allows home-assistant to use a pymodbus version for the modbus integration,
64-
while custom_components use another version.
65-
66-
We are offering to make other aliases for projects who need this, please
67-
open an issue in the pymodbus project, with an explanation of why it is
68-
needed.
69-
7051
Pymodbus in a nutshell
7152
----------------------
7253
Pymodbus consist of 5 parts:

doc/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ Please select a topic in the left hand column.
2020
source/authors
2121
source/changelog
2222
source/internals
23-
source/roadmap
2423

2524
.. include:: ../README.rst

doc/source/_static/examples.tgz

-83 Bytes
Binary file not shown.

doc/source/_static/examples.zip

-93 Bytes
Binary file not shown.

doc/source/client.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Synchronous example
130130
client = ModbusTcpClient('MyDevice.lan') # Create client object
131131
client.connect() # connect to device
132132
client.write_coil(1, True, device_id=1) # set information in device
133-
result = client.read_coils(2, 3, device_id=1) # get information from device
133+
result = client.read_coils(2, count=3, device_id=1) # get information from device
134134
print(result.bits[0]) # use information
135135
client.close() # Disconnect device
136136

@@ -150,7 +150,7 @@ Asynchronous example
150150
client = AsyncModbusTcpClient('MyDevice.lan') # Create client object
151151
await client.connect() # connect to device, reconnect automatically
152152
await client.write_coil(1, True, device_id=1) # set information in device
153-
result = await client.read_coils(2, 3, device_id=1) # get information from device
153+
result = await client.read_coils(2, count=3, device_id=1) # get information from device
154154
print(result.bits[0]) # use information
155155
client.close() # Disconnect device
156156

@@ -160,9 +160,9 @@ anything.
160160
The line :mod:`await client.connect()` connects to the device (or comm port), if this cannot connect successfully within
161161
the timeout it throws an exception. If connected successfully reconnecting later is handled automatically
162162

163-
The line :mod:`await client.write_coil(1, True, device_id=1)` is an example of a write request, set address 1 to True on device 1.
163+
The line :mod:`await client.write_coil(1, [True], device_id=1)` is an example of a write request, set address 1 to True on device 1.
164164

165-
The line :mod:`result = await client.read_coils(2, 3, device_id=1)` is an example of a read request, get the value of address 2, 3 and 4 (count = 3) from device 1.
165+
The line :mod:`result = await client.read_coils(2, count=3, device_id=1)` is an example of a read request, get the value of address 2, 3 and 4 (count = 3) from device 1.
166166

167167
The last line :mod:`client.close()` closes the connection and render the object inactive.
168168

@@ -217,7 +217,7 @@ All simple request calls (mixin) return a unified result independent whether it
217217
The application should evaluate the result generically::
218218

219219
try:
220-
rr = await client.read_coils(1, 1, device_id=1)
220+
rr = await client.read_coils(1, count=1, device_id=1)
221221
except ModbusException as exc:
222222
_logger.error(f"ERROR: exception in pymodbus {exc}")
223223
raise exc

0 commit comments

Comments
 (0)