zivillian / esp32-modbus-gateway

ESP32 Modbus RTU/TCP Gateway
GNU General Public License v3.0
137 stars 58 forks source link

Connected at Slave esp32 #12

Open IndrawanBudiP opened 1 year ago

IndrawanBudiP commented 1 year ago

I am trying to connect the esp32 gateway in your source code with some slave its build from this site https://github.com/espressif/esp-idf/tree/a2d76ad38ad4be46bdc7ce2becab45fbe71ecc48/examples/protocols/modbus/tcp/mb_tcp_slave

but Its Error: 0xe0 (Timeout), in the other hand the connection is true connected at my wifi both of them (gateway & slave) and the port is correct but still got same error. is that any additional configuration? or are you also build the code for slave modbus tcp/ip? thanks

zivillian commented 1 year ago

I'm not sure if this project is suitable for your setup. This firmware implements a ModbusTCP <-> Modbus RTU gateway - so you can use ModbusTCP to access the registers of a ModbusRTU device.