Of the many Modbus libraries, I like Arduino Modbus the best – it's easy to use, clearly laid out, and works very well with a Teensy.
Unfortunately, there's no naming convention at the beginning of the program, so you have to prefix all commands with "ModbusRTUClient".
This leads to confusion in larger programs. I would like to be able to replace the term "ModbusRTUClient" with a shorter form such as
MO or MB. Apparently, this has to be done in the h. or ccp. files. Can anyone help me with this?
Unfortunately, there's no naming convention at the beginning of the program, so you have to prefix all commands with "ModbusRTUClient".
This leads to confusion in larger programs. I would like to be able to replace the term "ModbusRTUClient" with a shorter form such as
MO or MB. Apparently, this has to be done in the h. or ccp. files. Can anyone help me with this?