Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore invalid function codes sent to other servers #78

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

carlfriess
Copy link
Contributor

Currently, when a Modbus master uses an unsupported function code, an exception is sent regardless of whether the request was targeting to the unit ID of the nanoMODBUS server. If a different device was targeted, the exception message interferes with the expected response. With Modbus RTU it is common to have different types of devices with different (and possibly custom) sets of function codes connected to the same bus. This change ensures the exception message is only sent when the nanoMODBUS server was explicitly targeted.

@debevv debevv merged commit 4b1f629 into debevv:master Dec 15, 2024
1 of 2 checks passed
@debevv
Copy link
Owner

debevv commented Dec 15, 2024

Correct. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants