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

Share code example read/write multi slave ? #159

Open
haidvams opened this issue Jun 13, 2021 · 3 comments
Open

Share code example read/write multi slave ? #159

haidvams opened this issue Jun 13, 2021 · 3 comments

Comments

@haidvams
Copy link

can someone help me?

@besbar
Copy link

besbar commented Apr 6, 2022

Dear all, I am also interested in using two (slave) RS485 sensors with a ESP32. Thanks a lot in advance !

@JoeEarlam
Copy link

JoeEarlam commented Jul 18, 2022

Hi, this is how I do it:

void testRead(uint8_t addr) { node.setSlaveID(addr); if (node.readHoldingRegisters(17, 35) == node.ku8MBSuccess) { for (uint8_t j = 0; j < 35; j++) { data[j] = node.getResponseBuffer(j); Serial.print(j); Serial.print(": "); Serial.println(data[j]); } } }

setSlaveID is a function I added from #111.

@cent0
Copy link

cent0 commented Oct 28, 2022

Hello friend this is single master and slave
We have the log for two device inverter is slave and display is master. Have read payload but this Comunication Gtil2 inverter not Hare modbus?
A this link i have shared log
cent0/Extend-wired-system-serial-uart-to-wifi-gtil2-log-display#1
Any help for decode this?

https://youtu.be/46qE9sLV13M

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

4 participants