Closed martyy665 closed 2 months ago
Please submit a pull request.
It is an interesting observation, we do not have a test case for this.
Solved in approved PR.
It seems I slept when approving this, because it breaks a lot of tests. Problem is that tid == 0 is an allowed transaction,
Will submit a fix shortly,
Versions
Pymodbus Specific
Description
After some periodic readouts from multiple slaves, wrong data are returned (data coming from another slave). It appears when the
tid
counter overflows 65535 and goes back to zero. Changing the line 507 inpymodbus/transaction.py
below fixes the issue.Code and Logs