rykovv / spiffs_circular_queue

ESP-IDF and PlatformIO compatible library for a circular queue or circular FIFO buffer over SPIFFS.
https://rykovv.github.io/spiffs_circular_queue/
MIT License
13 stars 4 forks source link

Define file max size dynamically as part of circular_queue_t #3

Closed aokrasavin closed 1 year ago

aokrasavin commented 2 years ago

May I suggest that instead of defining file max size as a global fixed value (SPIFFS_CIRCULAR_QUEUE_FILE_MAX_SIZE), it should be defined as part of circular_queue_t, so could be set individually and dynamically for different queues. I have a requirement for queues with different sizes (completely different types of data), also where the file size is controlled dynamically based on availability of SPIFFS space (and reajusted regularly based on situation)

rykovv commented 2 years ago

@aokrasavin Thank you for the good suggestions! The user-defined queue size feature was included in the upcoming release. I will include the dynamically settable and expandable based on available space size too.

rykovv commented 1 year ago

Introduced in the Release 1.2