tuxnsk / nodejs_libmodbus

libmodbus binding for nodejs
41 stars 66 forks source link

Set MODBUS_ERROR_RECOVERY_LINK #44

Open timoteo7 opened 6 years ago

timoteo7 commented 6 years ago

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,