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

I cannot get this to work :c #3

Open
k1llerk3ks opened this issue Jan 14, 2024 · 2 comments
Open

I cannot get this to work :c #3

k1llerk3ks opened this issue Jan 14, 2024 · 2 comments

Comments

@k1llerk3ks
Copy link

k1llerk3ks commented Jan 14, 2024

Whenever i try to run the test script from readme i get: (i changed the MAC of the device a little)

Traceback (most recent call last):
  File "/home/myuser/python-spotled/example/test.py", line 2, in <module>
    sender = spotled.LedConnection('3b10b03d6ba4')
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/spotled/__init__.py", line 770, in __init__
    self._ensure_connection()
  File "/usr/lib/python3.11/site-packages/spotled/__init__.py", line 812, in _ensure_connection
    raise TimeoutError("Timeout exceeded waiting for bluetooth connection.")
TimeoutError: Timeout exceeded waiting for bluetooth connection.
@gilraeon
Copy link

The MAC address you are using is the one you got from a gattool scan, right?

Also I think the correct format for MAC address is colon separated, e.g.

spotled.LedConnection('25:BC:4E:5D:52:B0')

@k1llerk3ks
Copy link
Author

Sorry, i typed a bit fast - i tested the format spotled.LedConnection('25:BC:4E:5D:52:B0') too, also with lowercase chars.

I am running Manjaro btw.

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

2 participants