espp/nvs

0.21.0

uploaded 1 day ago
NVS (non-volatile storage) component for ESP-IDF

readme

# NVS (Non-Volatile Storage) Component

The `nvs` component provides various utility classes for interfacing with the
ESP `nvs` subsystem to store and retrieve data that persists between power
cycles and power loss.

<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**

- [NVS Example](#nvs-example)
  - [NVS](#nvs)
  - [NVS Handle](#nvs-handle)
  - [Example](#example)

<!-- markdown-toc end -->

## NVS

The `NVS` component provides a simple class representing an NVS controller. 

## NVS Handle

The `NVSHandle` class manages individual NVS storage handles, allowing for scoped
control over specific NVS namespaces. It simplifies operations like reading,
writing, and committing key-value pairs within these namespaces. 

## Example

The [example](./example) shows the use of the `NVS` component to save a variable to the NVS and load 
it after reset. 

Links

Supports all targets

Maintainer

  • William Emfinger <waemfinger@gmail.com>

License: MIT

To add this component to your project, run:

idf.py add-dependency "espp/nvs^0.21.0"

or download archive

Stats

  • Archive size
    Archive size ~ 12.82 KB
  • Downloaded in total
    Downloaded in total 0 times
  • Downloaded this version
    This version: 0 times

Badge

espp/nvs version: 0.21.0
|