• The two modes are complementary, MODBUS_ERROR_RECOVERY_LINK handles
    errors at data link level (bad file descriptor, timeout, etc) and
    MODBUS_ERROR_RECOVERY_PROTOCOL checks Modbus error (eg. invalid
    function code or trame length).
    
    This change introduces the use of the Sleep function for Windows.
    Some duplicated code has been moved from backends to modbus core.
    A new debug message is now available when a flush occurs.
    
    The unit tests are now based on this error recovery code.
    Stéphane Raimbault authored
     
    Browse File »





  • The _modbus_receive_confirmation()_ function shall receive a
    request via the socket of the context 'ctx'. This function must be
    used for debugging purposes because the received response isn't
    checked against the initial request. This function can be
    convenient to receive request not handled by the library.
    Stéphane Raimbault authored
     
    Browse File »
  • The _modbus_send_raw_request()_ function shall send a request via
    the socket of the context 'ctx'. This function must be used for
    debugging purposes because you have to take care to make a valid
    request by hand. The function only adds to the message, the header
    or CRC of the selected backend, so 'raw_req' must start and contain
    at least a slave/unit identifier and a function code. This function
    can be used to send request not handled by the library.
    Stéphane Raimbault authored
     
    Browse File »