Most complete Modbus library for Arduino. A library that allows your Arduino board to communicate via Modbus protocol, acting as a master, slave or both. Supports network transport (Modbus TCP) and Serial line/RS-485 (Modbus RTU). Supports Modbus TCP Security for ESP8266/ESP32.
Is it possible to improve callback?
instead of
bool cbf0(Modbus::ResultCode event, uint16_t transactionId, void data)
to
bool cbfx(Modbus::ResultCode event, uint16_t transactionId, void data, int idSlave)
in case of multiples slaves inside the call back would be there the idSlave and would make it easier to work on the errors.
Is it possible to improve callback? instead of bool cbf0(Modbus::ResultCode event, uint16_t transactionId, void data) to bool cbfx(Modbus::ResultCode event, uint16_t transactionId, void data, int idSlave)
in case of multiples slaves inside the call back would be there the idSlave and would make it easier to work on the errors.
the transationid is just that...