Skip to content

Commit c1e7f3b

Browse files
committed
Release fixes.
1 parent 6ae39cf commit c1e7f3b

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

API_changes.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ API changes 3.10.0
99
- slave=, slaves= replaced by device_id=, device_ids=
1010
- slave request names changed to device
1111
- bit handling order is LSB (last byte) -> MSB (first byte)
12+
readCoils and other bit functions now return bit in logical order (NOT byte order)
13+
14+
Older versions had LSB -> MSB pr byte
15+
V3.10 have LSB -> MSB across bytes.
16+
17+
Example:
18+
Hex bytes: 0x00 0x01
19+
Older versions would deliver False * 8 True False * 7
20+
V3.10 deliver True False * 15
21+
22+
Hex bytes: 0x01 0x03
23+
Older versions would deliver True False * 7 True True False * 6
24+
V3.10 deliver True True False * 6 True False * 7
1225

1326
API changes 3.9.0
1427
-----------------

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2008-2023 Pymodbus
1+
Copyright 2008-2025 Pymodbus
22

33
Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions

doc/source/upgrade_40.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@ Pymodbus 4.0 upgrade procedure
44
Pymodbus 4.0 contains a number of incompatibilities with Pymodbus 3.x, however
55
most of these are simple edits.
66

7-
Bit handling
8-
------------
9-
readCoils and other bit functions now return bit in logical order (NOT byte order)
10-
11-
Older versions had LSB -> MSB pr byte
12-
New version have LSB -> MSB across bytes.
13-
14-
Example:
15-
Hex bytes: 0x00 0x01
16-
v3.x would deliver False * 8 True False * 7
17-
V4.x deliver True False * 15
18-
19-
Hex bytes: 0x01 0x03
20-
v3.x would deliver True False * 7 True True False * 6
21-
V4.x deliver True True False * 6 True False * 7
22-
237

248
Python 3.9
259
----------

0 commit comments

Comments
 (0)