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

[QUESTIONS] writemultipleregisters - possible to skip x addresses? #192

Open
JesperThorup opened this issue Mar 3, 2024 · 0 comments
Open

Comments

@JesperThorup
Copy link

Hi,

Im Using the modbus master library, and it's working as intended :)

But know I need to write 29 registers, and I'm using the writeMultipleRegisters function.
But there are six addresses in the midle, I do not want to change. Is it possible to just skip them:

setTranmitBuffer(0, 1); setTranmitBuffer(1, 1); // Then just skip to 7 setTranmitBuffer(7, 1); setTranmitBuffer(8, 1);

Or do I have to split my function to send the firt group, and then the second right after?

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

No branches or pull requests

1 participant