Skip to content

Fixed sample program ModbusTcpMasterReadInputsFromModbusSlave#201

Open
mpphelps wants to merge 1 commit intoNModbus:masterfrom
mpphelps:master
Open

Fixed sample program ModbusTcpMasterReadInputsFromModbusSlave#201
mpphelps wants to merge 1 commit intoNModbus:masterfrom
mpphelps:master

Conversation

@mpphelps
Copy link
Copy Markdown

@mpphelps mpphelps commented Dec 6, 2024

I tried using this sample program and discovered that it wait indefinitely on reading the input registers because there was no slave device 0. Changed to read on defined variable slaveId and now it works when this method is uncommented in the main function. I also added values in the input registers so there was data to read besides zeros.

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.

1 participant