Skip to content

Instantly share code, notes, and snippets.

View fgsch's full-sized avatar

Federico G. Schwindt fgsch

  • Cambridgeshire, UK
View GitHub Profile
@fgsch
fgsch / main.rs
Created October 18, 2022 21:40 — forked from pyaillet/main.rs
esp-idf-rs storage example
use std::sync::Arc;
use embedded_svc::storage::{RawStorage, StorageBase};
use esp_idf_svc::{nvs::EspDefaultNvs, nvs_storage::EspNvsStorage};
use esp_idf_sys as _; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported
use log::*;
fn main() {
// Temporary. Will disappear once ESP-IDF 4.4 is released, but for now it is necessary to call this function once,