I’m working on interfacing with a modbus sensor via UART and want to leverage the EI Modbus libraries.
The sensor I am using uses custom function codes that are outside of the support of the existing library. Any advice on implementing custom fcodes outside of cloning and modifying these libraries?
What I am finding is the modbus predefined message types (coil, diagnostic, etc) are heavily integrated into the modbusmaster and modbus485 libraries which makes it inflexible and difficult to modify without breaking things.
Thanks!