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 Request] Persistent Data Storage #26

Open
Megachip opened this issue Nov 10, 2024 · 3 comments
Open

[Feature Request] Persistent Data Storage #26

Megachip opened this issue Nov 10, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Megachip
Copy link

Would be nice to have (a) persistant data(base).

There is already a date in first seen, but when closing the app, all data is gone.

@Megachip Megachip added the enhancement New feature or request label Nov 10, 2024
@Megachip Megachip changed the title [Feature Request] [Feature Request] Persistent Data Storage Nov 10, 2024
@emericg
Copy link
Owner

emericg commented Nov 10, 2024

Hum there already is a persistent database :/ it's always been there, actually. From the other issue, I guess you are using the flatpak version?

The persistent database is a file in the standard folder for application stuff (/.local/share/toolBLEx/toolBLEx/data.db) and it save all the seen devices, and many things about them.
There is also a folder (/.local/share/toolBLEx/toolBLEx/devices/) that saves the cached services and characteristiques for the devices, does that feature works?

@Megachip
Copy link
Author

Megachip commented Nov 10, 2024

Hum there already is a persistent database :/ it's always been there, actually. From the other issue, I guess you are using the flatpak version?

Yes. At least for this request. Not tested windows or other OSses.

The persistent database is a file in the standard folder for application stuff (/.local/share/toolBLEx/toolBLEx/data.db) and it save all the seen devices, and many things about them. There is also a folder (/.local/share/toolBLEx/toolBLEx/devices/) that saves the cached services and characteristiques for the devices, does that feature works?

I would love to see the strike outed part ;) But Ill guess most of the BLE devices randominze there UID, so maybe this feature doesn't make so much sense as it seems on the first thought?

@emericg
Copy link
Owner

emericg commented Nov 11, 2024

Damn sorry, the ~ character in the paths automatically put strikes in the comment :o
Nothing is randomized in BLE, just the MAC addresses in iOS and macOS are replaced by a randomized UUID, but it's done once per computer, so you can reconnect to the same BLE device later (but can't identify one BLE device between two computers).

Path for saved data is /.local/share/toolBLEx/toolBLEx/
Path for saved config is /.config/toolBLEx/toolBLEx.conf

Maybe saving data need a special permission with flatpaks, I don't know...

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

2 participants