espressif / esp-modbus

ESP-Modbus - the officially suppported library for Modbus protocol (serial RS485 + TCP over WiFi or Ethernet).
Apache License 2.0
85 stars 46 forks source link

feature/add user error handler #62

Open alisitsyn opened 2 months ago

alisitsyn commented 2 months ago

This PR adds the user error handler. This handler is called on packet processing error and allows to catch the request/response buffers for the corresponded Modbus transaction.

This PR addresses the issue: https://github.com/espressif/esp-modbus/issues/60