Skip to content

Commit 31c1650

Browse files
authored
Doc generation patch (#408)
* Rebase to dev3.7 * Adding 3.7 to travis configuration * Updated documentation to resolve warnings introduced with the longer names Updated requirements-docs.txt to include missing modules * Fixed reference to deprecated asynchronous * Adding gmp disable to fix pypy build issues * Adding gmp disable to fix pypy build issues * Removing travis python 3.7 configuration Commenting out python3.7 from Travis while waiting for support. You can run teh 3.7 tests with tox without issues * Adding asserts for Payload Endianness * Fixing example of Payload. Same Endianness for builder and decoder. * Fix Sql db slave context validate and get methods - #139 * #353 - debugging, Add debug logs to check size of avaialble data in read buffer * #353 Provide an option to disable inter char timeouts * #353 Bump version, update changelog * check self.socket (#354) * check self.socket self.socket might be None at this point * Update pymodbus/client/sync.py Co-Authored-By: mpf82 <mpf82@users.noreply.github.com> * Fix typo (#378) * Pymodbus 2.2.0 (#375) * #357 Support registration of custom requests * #368 Fixes write to broadcast address When writing to broadcast address (unit_id=0) there should be no response according to the Modbus spec. This fix changes expected_response_length to 0 when writing to unit_id=0. This will break any existing code that is improperly using unit_id 0 for a slave address. * Bump version to 2.2.0 Fix #366 Update failures in sql context Update Changelog Fix major minor version in example codes * Fix #371 pymodbus repl on python3 * 1. Fix tornado async serial client `TypeError` while processing incoming packet. 2. Fix asyncio examples. 3. Minor update in factory.py, now server logs prints received request instead of only function cod * [fix v3] poprawa sprawdzania timeout * Release candidate for pymodbus 2.2.0 * Fix #377 when invalid port is supplied and minor updates in logging * #368 adds broadcast support for sync client and server Adds broadcast_enable parameter to client and server, default value is False. When true it will treat unit_id 0 as broadcast and execute requests on all server slave contexts and not send a response and on the client side will send the request and not try to receive a response. * #368 Fixes minor bug in broadcast support code * Fixed erronous CRC handling If the CRC recieved is not correct in my case my slave got caught in a deadlock, not taking any new requests. This addition fixed that. * Update Changelog * Fix test coverage * Fix #387 Transactions failing on 2.2.0rc2. * Task Cancellation and CRC Errors Alternate solution for #356 and #360. Changes the RTU to make the transaction ID as the unit ID instead of an ever incrementing number. Previously this transaction ID was always 0 on the receiving end but was the unique transaction ID on sending. As such the FIFO buffer made the most sense. By tying it to the unit ID, we can recover from failure modes such as: - - Asyncio task cancellations (eg. timeouts) #360 - Skipped responses from slaves. (hangs on master #360) - CRC Errors #356 - Busy response * Cherry pick commit from PR #367 , Update changelog , bump version to 2.2.0rc4 * #389 Support passing all serial port parameters to asynchronous server * Fix BinaryPayloadDecoder and Builder wrt to coils * Misc updates, bump version to 2.2.0 * ReportSlaveIdResponse now tries to get slave id based on server identity for pymodbus servers * Update missing bcrypt requirement for testing * Fix docs (#407) * Fix document generation * Formatting updates in Changelog
1 parent 2ef91e9 commit 31c1650

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

CHANGELOG.rst

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
Version 2.2.0
22
-----------------------------------------------------------
33
**NOTE: Supports python 3.7, async client is now moved to pymodbus/client/asychronous**
4-
```
5-
from pymodbus.client.asynchronous import ModbusTcpClient
6-
```
4+
5+
6+
.. code-block:: python
7+
8+
from pymodbus.client.asynchronous import ModbusTcpClient
9+
710
811
* Support Python 3.7
912
* Fix to task cancellations and CRC errors for async serial clients.
@@ -25,13 +28,13 @@ from pymodbus.client.asynchronous import ModbusTcpClient
2528
* Fix regression introduced in 2.2.0rc2 (Modbus sync client transaction failing)
2629
* Minor update in factory.py, now server logs prints received request instead of only function code
2730

28-
```
29-
# Now
30-
DEBUG:pymodbus.factory:Factory Request[ReadInputRegistersRequest: 4]
31-
# Before
32-
DEBUG:pymodbus.factory:Factory Request[4]
31+
.. code-block:: bash
32+
33+
# Now
34+
# DEBUG:pymodbus.factory:Factory Request[ReadInputRegistersRequest: 4]
35+
# Before
36+
# DEBUG:pymodbus.factory:Factory Request[4]
3337
34-
```
3538
3639
3740
Version 2.1.0

doc/conf.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,19 @@
4545
# Add any Sphinx extension module names here, as strings. They can be
4646
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4747
# ones.
48-
extensions = ['sphinx.ext.autodoc', 'm2r', 'recommonmark']
48+
49+
#extensions = ['sphinx.ext.autodoc', 'm2r', 'recommonmark']
50+
extensions = ['sphinx.ext.autodoc', 'm2r']
4951

5052
# Add any paths that contain templates here, relative to this directory.
5153
templates_path = ['_templates']
5254

5355
# The suffix(es) of source filenames.
5456
# You can specify multiple suffix as a list of string:
5557
#
56-
source_parsers = {
57-
'.md': CommonMarkParser,
58-
}
58+
#source_parsers = {
59+
# '.md': CommonMarkParser,
60+
#}
5961

6062
source_suffix = ['.rst', '.md']
6163
# source_suffix = '.rst'

0 commit comments

Comments
 (0)