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

[Feature-Idea] Device info dump #32

Open
FaBjE opened this issue Jan 20, 2024 · 0 comments
Open

[Feature-Idea] Device info dump #32

FaBjE opened this issue Jan 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@FaBjE
Copy link
Collaborator

FaBjE commented Jan 20, 2024

Note: This is a new feature idea, I don't know if I will find the time to implement this, anyone is welcome to do so

Rationale
When getting a new/unknown BLE device it always a discovery which services/characteristics are implemented/supported.
Especially in reverse-engineering of a undocumented product.

Description
Currently it is technically possible to do this by hand, but I think it would be a good feature to have a "device info dump" command.
Listing all the available services and their characteristics with their values/options in one big list.

Implementation
There is a bit of a challenge implementing this in the current codebase.
Only the BluetoothLEAttributeDisplay is stored in the global _services and _characteristics lists. Also the _characteristics is switches based on the selected service.

We could either:

  • Store all services as a "nested list" like structure. with each of them having a list of their characteristics as a "child" property/list and let other commands use that "tree". _selectedService and _selectedCharacteristic would point to objects within that list.
  • Implement the command with kind of a duplicate code of the current service selection/switching. which would duplicate a lot of code.
@FaBjE FaBjE added the enhancement New feature or request label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant