python-spotled icon indicating copy to clipboard operation
python-spotled copied to clipboard

I cannot get this to work :c

Open k1llerk3ks opened this issue 2 years ago • 2 comments

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.

k1llerk3ks avatar Jan 14 '24 18:01 k1llerk3ks

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')

gilraeon avatar Jan 18 '24 08:01 gilraeon

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.

k1llerk3ks avatar Jan 23 '24 19:01 k1llerk3ks