Closed
Description
Hello,
When trying to use the function ModbusServer::writeInputRegisters
got the following error:
/tmp/ccmQwHO6.ltrans1.ltrans.o: In function `main':
<artificial>:(.text.startup+0x996): undefined reference to `ModbusServer::writeInputRegisters(int, unsigned int*, int)'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
The function is documented under the official ArduinoModbus library site:
https://www.arduino.cc/en/ArduinoModbus/ModbusServerwriteInputRegisters
However, looking inside the code, the function seems to be defined in ModbusServer.h
, but not implemented in ModbusServer.cpp
.
Is there any specific reason for this or is just a lapse?