Skip to content

[Documentation] ArduinoModbus Server, wrong return value for configure* functions #10795

Open
@wayofka

Description

@wayofka

In documentation for ArduinoModbus library, all configure function for Server have wrong return value in documentation.
For example https://www.arduino.cc/en/ArduinoModbus/ModbusServerconfigureDiscreteInputs
The function allocate memory for Moddus registers and coils.

Returns
0 on success, 1 on failure 

Return should be ( according to source code )
-1 Invalid argument
0 on failure
1 on success

Same for all configure function

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions