-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Multiple device support #382
base: master
Are you sure you want to change the base?
Conversation
Thank you! Some points for now:
|
Ok, didn't checked that...
You mean to add it to the curernt list of connected devices?
Maybe an hybrid solution where you can use both of them would be also better... Question: Which |
Yes thats what I mean. That both Line 72 in 689c1fc
Yes, when the parameter is provided.
Basically there is no sense in choosing the interface, its already given by the device implementation |
Running tests locally gives no errors. |
Missed that... |
0a7fb6c
to
dea163b
Compare
dea163b
to
855b7df
Compare
Will take a deeper look into the PR over the holidays |
One thing still missing/bugs:
That is to query all devices including features. However it seems to be missing features like battery if deviceid is not specified. For example here it shows the battery of the test device but not of the corsair device
|
It Is actually a missing implementation, it displays the values only for the selected device spicefied by |
@Sapd I'm thinking about a solution that if you use -d it displays, loads, and also sends action, only the selected device.... if not, no action will be performed, but all devices infos will be shown.... do you like that? |
Sounds interesting, but what about making it this way: |
I’m not sure about querying all compatible devices. It might unintentionally alter the settings of other connected headphones, if someone has more of them...
Seems doable to me... |
I'm also thinking of removing the
What do you think about that? |
Good points! I agree
Why so? its only about querying (and on top only devices which are implemented in HeadsetControl). Basically Im thinking about that in accordance: https://github.com/Sapd/HeadsetControl/wiki/API-%E2%80%90-Building-Applications-on-top-of-HeadsetControl#querying-values I highly appreciate your work btw (I just need a bit of time to answer currently) |
I'm glad to hear that :)
Just to get me clear, you mean to query only informations like |
5227a17
to
3eed0e1
Compare
3eed0e1
to
c92ea25
Compare
I think there is still a bug:
It sends the sidetone request still to the test device. But I specified the corsair device
Currently checking in detail (btw ignore the format error, the problem is I think that our local versions are too new for the CI, but for the CI there is not a current version yet) |
Okay the behaviour is a bit funny:
That actually sends it to the corsair device. But it shows that its sending it to the test device
That shows that its sending it to the test device. But it does nothing, not even on the test device
That sends and shows its sending to the test device |
Found out where the error was.. I forgot do disable the action for the devices that weren't selected. The bug was caused beacuse I was creating the |
Ah now it works when But when I also think that when |
Seems good, right?
With
That's how I ment it to work... but if you want it to do something even without |
Yes.
That basically breaks functionality: If you have one device connected, that one should set the sidetone of the one device (but does nothing). That also was the previous behaviour.
If two are connected, I think it should error out and show the error in the json (as it would be otherwise confusing) |
Oh ok, you want that if there is only one connected you'll send action to it, elseway error out the action by saying that there are multiple devices connected an should specify one with
As an action error? |
Yep! Actually when you now try -s with two devices (at least with test deice) and without json output, you see it gets send to both:
But that should rather error out
Yes. There is currently an error_message field for that. |
…ecessary break statements in output functions
827b302
to
46fc7b8
Compare
Changes made
Added multiple device support with command arg -d, --device INDEX
Actions can be executed only to one device at a time
Checklist