🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Preferences library on M5Core

    Scheduled Pinned Locked Moved Arduino
    2 Posts 2 Posters 4.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      danielha
      last edited by

      Hi all !

      I'm planning to use the Preferences library to store some information in my M5Core. At some point i will need to change the values I'm storing there and one of these values is a large chunk of an html page (over 20 kB). Changes won't be needed that often so I don't think I'll harm the flash memory. However, what's my best strategy for updating ? Just save the new key value ? Set the key to a Null String then save the new page ? Remove the key then recreate it ? Does it make any difference in the way the flash memory is managed ?

      Thanks for your help,
      Daniel

      1 Reply Last reply Reply Quote 0
      • A Offline
        AgreeDK
        last edited by

        as I recall there is a size limit when using Preference lib, so suggest you only use that for things like ssid and passwords. You can save your web pages in SPIFFS memory, try look here: https://randomnerdtutorials.com/esp32-vs-code-platformio-spiffs/

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post