def detect_devices(soapy_args='<STR_LIT>'):
devices = simplesoapy.detect_devices(soapy_args, as_string=True)<EOL>text = []<EOL>text.append('<STR_LIT>')<EOL>if devices:<EOL><INDENT>for i, d in enumerate(devices):<EOL><INDENT>text.append('<STR_LIT>'.format(d))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>text.append('<STR_LIT>')<EOL><DEDENT>return (devices, '<STR_LIT:\n>'.join(text))<EOL>
Returns detected SoapySDR devices