toolBLEx icon indicating copy to clipboard operation
toolBLEx copied to clipboard

[Feature Request] Persistent Data Storage

Open Megachip opened this issue 1 year ago • 4 comments

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 avatar Nov 10 '24 00:11 Megachip

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?

emericg avatar Nov 10 '24 10:11 emericg

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?

Megachip avatar Nov 10 '24 14:11 Megachip

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...

emericg avatar Nov 11 '24 09:11 emericg

Do you have any new information regarding that issue? Even on flatpak, this should work... But I don't use (or test :) the flatpak builds.

emericg avatar Feb 06 '25 16:02 emericg

I'm closing this issue for now, please re-open if you have some new information regarding this issue.

emericg avatar Oct 16 '25 16:10 emericg