Page 1 of 1

Is there a Data Structure provided

Posted: Mon Oct 09, 2023 6:53 pm
by ioukos
Hi everyone,

Is ESP-IDF or Freertos provide a data structure to store in NON VOLATILE memory :
a serie of [ timestamp | id ] knowing that I have to remove periodically every entry that is older than 1 minute for example.

I was thinking of double linked list. Are you thinking of something else ?

Thank you

Re: Is there a Data Structure provided

Posted: Wed Oct 11, 2023 12:09 pm
by Nespressif
Hi, I believe that neither idf nor rtos give you already created data structures, such as a doubly linked list. You can create the structure you need in C, although for what you intend you may find it easy using NSV.

https://docs.espressif.com/projects/esp ... flash.html