Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Persistent event logging

    Scheduled Pinned Locked Moved Discussion
    loggingpersistence
    3 Posts 2 Posters 596 Views 2 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
      danielm
      last edited by

      I would like to implement persistent event logging into local file system. What approach to choose to achieve solution resilient to power outages? Using new LittleFS file system might help but I am a little bit concerned because there is also config file stored in the file system in case of our application. I was considering to move the config to RTC memory. Using NVS for persistent store of config is not an option as it currently supports only integers.

      1 Reply Last reply Reply Quote 0
      • P Offline
        Paul Thornton
        last edited by Paul Thornton

        That should work. I'm sure your well aware already but you'll also need some kind of house keeping process to clear and/or sync the logs to a remote host after a while to.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          danielm @Paul Thornton
          last edited by

          @paul-thornton
          Thank's Paul, anyway it would be helpful to implement NVS support for string and blob objects. I think this is already available in the IDF.
          What's your opinion @iwahdan ?

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom