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

ESP32/NVS: return tagged tuples instead of just the result #741

Merged
merged 5 commits into from
Aug 9, 2023

Commits on Aug 8, 2023

  1. ESP32/NVS: fix memory allocation

    Use term_binary_heap_size(size) macro in order to calculate required heap size
    for binary.
    
    Signed-off-by: Davide Bettio <[email protected]>
    bettio committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    849fcd6 View commit details
    Browse the repository at this point in the history
  2. ESP32/NVS: add fetch that returns tagged tuples instead of just the r…

    …esult
    
    New fetch function returns either `{ok, result}` or `error`, instead of
    `binary()` or `undefined`.
    
    Signed-off-by: Davide Bettio <[email protected]>
    bettio committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    2025e40 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. ESP32/NVS: use put rather than set

    Right now there are `fetch` and `get` function, `put` name matches better
    current naming.
    
    Signed-off-by: Davide Bettio <[email protected]>
    bettio committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    b36fbbe View commit details
    Browse the repository at this point in the history
  2. ESP32/NVS: deprecate NVS functions that default to ?ATOMVM_NVS_NS

    Let's explicitly mention the namespace, rather having a default one, so
    applications are encouraged using their own namespace, rather a kitchen
    sink one.
    
    Signed-off-by: Davide Bettio <[email protected]>
    bettio committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    4a69949 View commit details
    Browse the repository at this point in the history
  3. CHANGELOG.md: add ESP32 NVS changes

    Signed-off-by: Davide Bettio <[email protected]>
    bettio committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    db31c66 View commit details
    Browse the repository at this point in the history