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

GATT flags are returned as a String rather than an array of Strings #35

Closed
srware opened this issue Jun 29, 2020 · 2 comments
Closed

GATT flags are returned as a String rather than an array of Strings #35

srware opened this issue Jun 29, 2020 · 2 comments

Comments

@srware
Copy link

srware commented Jun 29, 2020

Currently the getFlags() method of BluetoothGattDescriptor and BluetoothGattCharacteristic returns a String. I would expect the translation from DBus API to Java in this case to be String[] given it returns an array of strings.


Is this a bug or does the end user need to do a contains() to determine which flags are present?

@hypfvieh
Copy link
Owner

I think this is a bug.
The bluez docs say that 'flags' are an array of String, so the method should query and return String[] or List.

I changed that in the latest commit, maybe you can try that. I don't have any device to test this right now.

hypfvieh added a commit that referenced this issue Jun 30, 2020
@srware
Copy link
Author

srware commented Jun 30, 2020

@hypfvieh , thanks for the fast response. I am also struggling to find something that returns a characteristic with properties defined but in terms of implementation the fix works so in principal hopefully this is fixed :)

@srware srware closed this as completed Jun 30, 2020
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