def pdmssp_connect_device(module_version):
    """
    Method collects user inputs for phone's MAC address.
    INPUTS: none 
    OUTPUT: Returns macaddr when successful, None when unsuccessful.
    """
    import re
    print(f'Welcome to VVXME CLI Menu version {module_version}\n')
    print('Attempting to connect endpoint on PDMS-SP:\n')
    print('[Step-1]: Collect phone MAC Address.\n')
    macaddr = ''
    loop = True
    while loop:
        macaddr = input(
            'Enter MAC address of the phone(no separators[-:], Eg.64167f12a34b): '
            )
        if re.match('([0-9a-f]{2}){6}$', macaddr.lower()):
            print(f'{macaddr} is a valid MAC address.')
            return macaddr
        else:
            print(
                f"Invalid input '{macaddr}' >> Invalid MAC address format. Do not use separators[-:], Eg.64167f12a34b"
                )
