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

How to use the IBattery1 interface? #19

Open
hansmbakker opened this issue Feb 1, 2021 · 3 comments
Open

How to use the IBattery1 interface? #19

hansmbakker opened this issue Feb 1, 2021 · 3 comments

Comments

@hansmbakker
Copy link

I see the IBattery1 interface is included in the library to deal with the point of Bluez hiding the battery characteristic, but is there any sample how we can best use it?

@hansmbakker
Copy link
Author

I'm no DBus expert but there seem to be multiple DBus interfaces for the same object path (device and battery).

Should I use BluezManager.GetProxiesAsync<IBattery1>(string interfaceName, IDBusObject rootObject), use the adapter as rootObject and the create a constant for the Battery interface in BluezConstants?

@vestervang
Copy link

@hansmbakker I have implemented the IBattery interface in this fork. It's only on github packages at the moment, but should be doable to get in your project https://github.com/vestervang/DotNet-BlueZ just like https://github.com/Rod-O/DotNet-BlueZ has done. I might push it to nuget if it's needed.

@hansmbakker
Copy link
Author

Thank you for letting me know!
I'm not working on my project at the moment so unfortunately I cannot try your fork and give feedback, sorry.
Wish you success on the development of your fork!

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