• According to the Modbus standard, the unit identifier is choosen by the
    TCP client and can be any value:
    
    "This field is used for intra-system routing purpose.  It is typically
    used to communicate to a MODBUS+ or a MODBUS serial line slave through a
    gateway between an Ethernet TCP-IP network and a MODBUS serial line.
    This field is set by the MODBUS Client in the request and must be returned
    with the same value in the response by the server."
    
    So the current check in modbus_reply must be extended to check whether
    we are in a RTU or TCP context.
    
    Also the unit-test has to be adjusted.
    
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    Michael Heimpold authored
     
    Browse Dir »