I am currently working on scanning of bluetooth - LE devices and printing them
I am using bluepy library from github and it works fine.
The thing is sometimes I am getting these errors regarding the
before trying to scan again.initialisation of hci0
to make sure the device keeps running , i have added some exception to counter the inistialisation problem
My question is , can I use the onboard BT for maybe future production use? Or do I need to use a separate module
Code: Select all
resp = subprocess.call(['sudo','hciconfig','hci0','down']) time.sleep(0.5) resp = subprocess.call(['sudo','hciconfig','hci0','up'])