May-07-2018, 09:23 AM
Hi,
this code was working in Python 2.7.9, and does not work anymore in Python 2.7.13:
Thanks for help, best regards
this code was working in Python 2.7.9, and does not work anymore in Python 2.7.13:
command = "sudo hcitool lescan" process = subprocess.Popen(command.split(), stdout = subprocess.PIPE) sleep(3) os.kill(process.pid, signal.SIGINT) data = process.communicate()[0] print(data)So how can I get the command response ?
Thanks for help, best regards