-
Notifications
You must be signed in to change notification settings - Fork 46
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 ability to save LE Advertising Reports with bluer-tools #118
Comments
Yes, sounds good to me! |
Great I'll fork the repo and make the changes on master unless the changes should be in a branch |
@surban here is a prototype to save advertisements to a file. The prototype does not yet have the command line switches. The basic idea is to call the append method to add a new json record of the advertisement when it is received. Recorded advertisments look like:
A couple issues to resolve.
Once the code changes are done I'll merge this branch into my master for the PR. |
Looks good to me in general. However, due to the problems with invalid JSON, I would suggest using JSON lines instead. You will not always be able to catch process termination and thus might end up with invalid JSON data on disk. Please send a PR. It's easier to review when a diff is available. |
Created PR #133 for review |
Merge complete, the issue can be closed. |
It would be useful for one of the bluer-tools to have a command line option to save advertising reports for future analysis and comparisons. Currently I modified
blumon
to save the reports in a JSON array with an example given below:Is there interest in accepting a PR for either modifying an existing bluer-tools program or creating a new one to include this functionality? I think having bluer-tools that can run at the command line by users not familiar with Rust will increase the adoption of BlueR and fill a gap in BlueZ command line tool capability, especially since the hci tools are deprecated.
The requirements of the feature would be:
@surban what are your thoughts?
The text was updated successfully, but these errors were encountered: