bertmelis / esp32ModbusTCP

Modbus client for ESP32
MIT License
84 stars 32 forks source link

requirements for this library to work? #15

Closed carbonadam closed 4 years ago

carbonadam commented 4 years ago

I am super new to wanting to work with modbus so really sorry if I am just not getting something. Is any external hardware requried to talk between 2 esp32s using modbus protocol or can we simply use tx rx ect or other pits to output rs485..somehow im not getting it. I know its not an issue with the library but would love clarification

bertmelis commented 4 years ago

https://en.m.wikipedia.org/wiki/Modbus

Why would you use modbus? There are more appropriate ways to communicate between ESPs. Besides, you would need a master and a slave and this lib only acts as master.

RS485 is an electrical spec which happens to be used oftenly by modbus(RTU).