Is there a Data Structure provided

ioukos
Posts: 1
Joined: Mon Oct 09, 2023 6:44 pm

Is there a Data Structure provided

Postby ioukos » Mon Oct 09, 2023 6:53 pm

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

Nespressif
Posts: 76
Joined: Tue Sep 12, 2017 11:25 am

Re: Is there a Data Structure provided

Postby Nespressif » Wed Oct 11, 2023 12:09 pm

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

Who is online

Users browsing this forum: Baidu [Spider] and 65 guests