Enforce stricter validation #2674
Lucas-Morais-Freire
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Pull requests are welcome. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please be aware that the simulator datastore is changing on dev, we move towards a much simpler configuration. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. First of all, thanks for the continued work!
I was testing the simulator with some addresses listed in the "invalid" section of the configuration json (with shared memory set to False). I had a bit register on address 0 and one invalid register on address 1. I tried reading coils starting on address 15 with count 16. Of course, coil 15 is part of register 0 and that's okay, but coils 16 - 30 should be illegal. The current way the range for bit access is computed is like this:
I was wondering if it would be desirable to change it to this:
this way, the
count
takes into account the starting address as well so that you can catch cases like the one I describe above.Beta Was this translation helpful? Give feedback.
All reactions