(l, value)
try to find a address gap in the list of modbus registers
try to find a address gap in the list of modbus registers
try to find a address gap in the list of modbus registers
def find_gap(l, value):
    """
    try to find a address gap in the list of modbus registers
    """
    for index in range(len(l)):
        if l[index] == value:
            return None
        if l[index] > value:
            return index
def find_gap ( l , value ) : for index in range ( len ( l ) ) : if l [ index ] == value : return None if l [ index ] > value : return index