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

Hue Bulb: Problem with sending a value to handle 0x0027 #46

Open
anvarakhmedov opened this issue Jan 29, 2021 · 1 comment
Open

Hue Bulb: Problem with sending a value to handle 0x0027 #46

anvarakhmedov opened this issue Jan 29, 2021 · 1 comment

Comments

@anvarakhmedov
Copy link

I am trying to turn my bluetooth Hue bulb on/off and change brightness using my Raspberry Pi 4B. The bulb is on, and I have successfully connected to it using bluez. When I try to run 'char-write-req 0x0027 01' to turn it on, I get this message:

GLib-WARNING **: 22:53:34.807: Invalid file descriptor

I can see that the connection is successful, but whenever I try to write a value to it, I just get this message and it disconnects. Running bluetoothctl 5.50. I have seen the patch conversation here: https://www.spinics.net/lists/linux-bluetooth/msg67617.html. But I am not sure it applies and I also wouldn't even know how to apply it. Can someone please help me!

@dbaba
Copy link
Collaborator

dbaba commented Jan 29, 2021

Unfortunately, I cannot help to answer it.
I believe the error is caused by gattool. However, this node never uses gattool.
If you need to use gattool, you may want to post the question to the Bluez ML.

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