[Documentation] ArduinoModbus Server, wrong return value for configure* functions #10795
Labels
Component: Documentation
Related to Arduino's documentation content
Library: Other
Arduino libraries that don't have their own label
Type: Bug
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.
Return should be ( according to source code )
-1 Invalid argument
0 on failure
1 on success
Same for all configure function
The text was updated successfully, but these errors were encountered: