Arduino Modbus Slave no matching function for call to 'modbusSlave::setBaud(int)'

Your sketch in your original post compiles for me