Skip to content

Set MODBUS_ERROR_RECOVERY_LINK #44

Open
@timoteo7

Description

@timoteo7

Hi!
First, I would to thank you for your wonderful library.
I'm using it from Node.JS and I'm trying to call the: modbus_set_error_recovery() function as described here:
http://libmodbus.org/docs/v3.0.6/modbus_set_error_recovery.html
from Node.JS, but it seems that that function is not exposed for external use.

I need that configuration set in order to exit from this loop when I unplug the device:

    Waiting for a indication...
    ERROR Connection reset by peer: read

I'm using the library as a slave in RTU mode.

Can you give some help with that?

Thanks in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions