-
Notifications
You must be signed in to change notification settings - Fork 336
How to save settings in custom driver? #1598
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
Comments
It's nice to hear that people are creating custom drivers. For saving data in flash, we don't have any universal API, but you can use retain channels (saved as short), as there are MAX_RETAIN_CHANNELS (12) of them and it's very unlikely that users will use all 12 of them... usually up to 4 are used. Alternatively, you could try LFS |
Thanks for your answer, however 8 shorts won't be enough. |
Yes we have LFS, check commands for lfs_write etc and check their
implementation. You can also check rest_interface.c file. You can read,
write, append and remove files. I can give more details later if it's needed
…On Wed, 9 Apr 2025, 09:17 Phil1pp, ***@***.***> wrote:
Thanks for your answer, however 8 shorts won't be enough.
I am trying to implement a KNX interface which will need a storage of up
to 1024 bytes.
Can I read and write to the Flash somehow?
Is LFS implemented an how to use it?
—
Reply to this email directly, view it on GitHub
<#1598 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUMGZ64DWHTP6S6MVPCJ63D2YTCQDAVCNFSM6AAAAAB2WUJOLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBYGU4DKOJWGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
*Phil1pp* left a comment (openshwprojects/OpenBK7231T_App#1598)
<#1598 (comment)>
Thanks for your answer, however 8 shorts won't be enough.
I am trying to implement a KNX interface which will need a storage of up
to 1024 bytes.
Can I read and write to the Flash somehow?
Is LFS implemented an how to use it?
—
Reply to this email directly, view it on GitHub
<#1598 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUMGZ64DWHTP6S6MVPCJ63D2YTCQDAVCNFSM6AAAAAB2WUJOLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBYGU4DKOJWGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am trying to write a custom driver that requires to save some configuration data and restore it after reboot.
Is there already any function/library that can be used for this purpose?
The text was updated successfully, but these errors were encountered: