Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection issue #1

Open
FlorLouv opened this issue Nov 22, 2017 · 2 comments
Open

connection issue #1

FlorLouv opened this issue Nov 22, 2017 · 2 comments

Comments

@FlorLouv
Copy link

Hello Leiaz,
Thank you for your work. I have an issue when I test your example :

root@debian:~/python-awox-mesh-light# python3 test.py Traceback (most recent call last): File "test.py", line 4, in <module> mylight.connect () File "/root/python-awox-mesh-light/awoxmeshlight/__init__.py", line 113, in connect self.btdevice.connect (self.mac) File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 408, in connect self._connect(addr, addrType, iface) File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 402, in _connect "Failed to connect to peripheral %s, addr type: %s" % (addr, addrType)) bluepy.btle.BTLEException: Failed to connect to peripheral A4:C1:38:79:0B:6C, addr type: public
Remove all association (remote,smartphone) is mandatory ?

Best regards

@Leiaz
Copy link
Owner

Leiaz commented Nov 23, 2017

Bluepy can't connect to the device. It could mean your Bluetooth adapter is off, or the light is already connected. If you connected to the light with some tool like bluetoothctl or a Bluetooth GUI widget, it must be disconnected from there first. I haven't used the phone app or remote, so I didn't test, but you could try turning off the app or Bluetooth on the phone in case it stays connected to it.

I don't think you need to completely remove the associations (but didn't test). But only one thing can connect to the light at a time.

@BVISE
Copy link

BVISE commented Dec 25, 2021

I have the same Problem and no other device is connectet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants