Closed JohanLeirnes closed 5 years ago
I don't see any straight solution, the main error is simply the failure when bluepy tries to connect. It has nothing really to do with this script. Are you running on a Raspberry Pi? BluePy has been very intermittent on those.
The issue tracker on BluePy is littered with this error, maybe you can get more help there?
bluepy.btle.BTLEException: Failed to connect to peripheral 58:2b:db:00:ac:42, addr type: public
Im using it on hassbian. I just read in the installation docs that there is no Bluetooth LE support. Might try this script on another computer with ubuntu and see if i can get it to work.
Thanks for the pointers.
im getting an error trying to run your code.