Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Assignees
Labels
Component: DocumentationRelated to Arduino's documentation content Library: OtherArduino libraries that don't have their own label Type: Bug
@wayofka

Description

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

Labels

Component: DocumentationRelated to Arduino's documentation content Library: OtherArduino libraries that don't have their own label Type: Bug

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /