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

Implement persistency for properties #188

Merged
merged 8 commits into from
Dec 15, 2023

Conversation

sorru94
Copy link
Collaborator

@sorru94 sorru94 commented Nov 17, 2023

Closes #29

@sorru94 sorru94 force-pushed the persistency branch 15 times, most recently from e1f95d7 to fafe066 Compare November 23, 2023 11:19
@sorru94 sorru94 force-pushed the persistency branch 15 times, most recently from ca19b5c to f17272b Compare November 27, 2023 14:50
@sorru94 sorru94 force-pushed the persistency branch 9 times, most recently from 9538e16 to 3d83046 Compare December 7, 2023 16:37
examples/properties/main/src/example_task.c Outdated Show resolved Hide resolved
tests/target/test_astarte_storage.h Outdated Show resolved Hide resolved
tests/target/test_astarte_nvs_key_value.h Outdated Show resolved Hide resolved
Signed-off-by: Simone Orru <simone.orru@secomind.com>
Signed-off-by: Simone Orru <simone.orru@secomind.com>
Signed-off-by: Simone Orru <simone.orru@secomind.com>
Signed-off-by: Simone Orru <simone.orru@secomind.com>
Signed-off-by: Simone Orru <simone.orru@secomind.com>
Signed-off-by: Simone Orru <simone.orru@secomind.com>
@harlem88
Copy link
Collaborator

Add some lines about this feature to the changelog.

Copy link
Collaborator

@harlem88 harlem88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I think it's time to enable the clean_session behavior.

// TODO: At this time, the device starts with a clean session every connection,

Since IDF-5.0 the property has been moved below session field

.session.disable_clean_session = true,

Signed-off-by: Simone Orru <simone.orru@secomind.com>
Signed-off-by: Simone Orru <simone.orru@secomind.com>
@harlem88 harlem88 merged commit 3c6b3e6 into astarte-platform:master Dec 15, 2023
32 checks passed
@sorru94 sorru94 deleted the persistency branch December 18, 2023 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The ESP32 SDK should handle properties cache and persistency on the NVS flash
3 participants