Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

example to MultiHoldingRegister #13

Open
linhartjar opened this issue Dec 23, 2019 · 1 comment
Open

example to MultiHoldingRegister #13

linhartjar opened this issue Dec 23, 2019 · 1 comment

Comments

@linhartjar
Copy link

It is possible to write an example to MultiHoldingRegister, it reports me an error.

@EmanueleFeola
Copy link

I used it like this and it works. What error do you get?
uint8_t buf[4] = {getHigh(qSetPoint), getLow(qSetPoint), 0, modbusWatchdog};
modbus.writeMultHoldingRegisters(SLAVE_ID, Q_CUR_SETPOINT_ADDR, 2, buf);

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

No branches or pull requests

2 participants