Skip to content

ModbusServer::writeInputRegisters not implemented #18

Closed
@jlucas2019

Description

@jlucas2019

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions