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

Add descriptors #1

Merged
merged 3 commits into from
Jan 21, 2024
Merged

Add descriptors #1

merged 3 commits into from
Jan 21, 2024

Conversation

jmlich
Copy link
Contributor

@jmlich jmlich commented Jan 19, 2024

Descriptors are needed to make screenshots on AsteroidOS working - piggz/harbour-amazfish#320

For each characteristics can be available set of descriptors. I decided to add introspect() method into characteristics constructor to enumerate all available descriptors.

Example of use is:

    writeDescriptorAsync("00006002-0000-0000-0000-00a57e401d05", "00002902-0000-1000-8000-00805f9b34fb", QByteArray::fromHex("0100"));

00006002-0000-0000-0000-00a57e401d05 is Content Characteristics from https://wiki.asteroidos.org/index.php/BLE_profiles#Screenshot_Profile

00002902-0000-1000-8000-00805f9b34fb is Client Characteristic Configuration

@piggz
Copy link
Owner

piggz commented Jan 21, 2024

Do we need to be able to read descriptors also?

@jmlich
Copy link
Contributor Author

jmlich commented Jan 21, 2024

It seems to be easy to add interface for reading of descriptors, but I don't have good use case for that and I haven't done much tests.

@piggz piggz merged commit c2ecbff into piggz:master Jan 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants