File tree Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,19 @@ API changes 3.10.0
9
9
- slave=, slaves= replaced by device_id=, device_ids=
10
10
- slave request names changed to device
11
11
- 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
12
25
13
26
API changes 3.9.0
14
27
-----------------
Original file line number Diff line number Diff line change 1
- Copyright 2008-2023 Pymodbus
1
+ Copyright 2008-2025 Pymodbus
2
2
3
3
Redistribution and use in source and binary forms, with or without
4
4
modification, are permitted provided that the following conditions
Original file line number Diff line number Diff line change @@ -4,22 +4,6 @@ Pymodbus 4.0 upgrade procedure
4
4
Pymodbus 4.0 contains a number of incompatibilities with Pymodbus 3.x, however
5
5
most of these are simple edits.
6
6
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
-
23
7
24
8
Python 3.9
25
9
----------
You can’t perform that action at this time.
0 commit comments