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 finally connected, but now im getting this error haha #7

Open
The-Reeded-Edge opened this issue Feb 25, 2024 · 1 comment
Open

I finally connected, but now im getting this error haha #7

The-Reeded-Edge opened this issue Feb 25, 2024 · 1 comment

Comments

@The-Reeded-Edge
Copy link

The-Reeded-Edge commented Feb 25, 2024

traceback (most recent call last):
File "/home/thescribe/Documents/spotledtest.py", line 2, in
sender = spotled.LedConnection('E1:A0:BB:5D:5A:A0')
File "/home/thescribe/.local/lib/python3.10/site-packages/spotled/init.py", line 771, in init
self.connection.write_by_handle(0x0f, b'\x00\x00\x00\x01') # request notifications
gattlib.GATTException: Characteristic value/descriptor operation failed: Attribute can't be written

I copy/pasted a couple lines of code you posted here, and i got this error.. i think its because that mac address cant be assigned to the sender variable??

edit: at least i think i connected idk.. but the error message changed from saying the bluetooth connection timed out to this when i put in the correct mac address, (the address of the led screen itself)

@rfreedman
Copy link

I.m getting the same error as https://github.com/The-Reeded-Edge

File "/home/thescribe/.local/lib/python3.10/site-packages/spotled/init.py", line 771, in init
self.connection.write_by_handle(0x0f, b'\x00\x00\x00\x01') # request notifications
gattlib.GATTException: Characteristic value/descriptor operation failed: Attribute can't be written

This is with python 3.10.12, python3-gattlib and the python spotled library are installed, Kubuntu 22.04

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