Hello!
Help me solve the problem when uploading a sketch for Arduino Nano, where I use both Modbus and SoftwareSerial at the same time, and it keeps giving me this error: undefined reference to `void Modbus::begin(SoftwareSerial, long)'*
Where am I doing wrong?
The code snippets are useless. You don't know where is the error in your code and since that you can't decide which code parts will be useful to locate the error.
Please show your code in full.
Yes, I use a classic NANO board. The code I copied needs the smarmengol/Modbus-Master-Slave-for-Arduino library. But the code is older and maybe the current library has already been changed. Not supported slave.begin( &mySerial, 9600);
When I change it to slave.start(); it is OK
Thanks, I already found the reason, I needed an older library smarmengol / Modbus-Master-Slave-for-Arduino for this code.
The current version is from 2022 and the 2018 version was used for this code.
Now no more errors during compilation.