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

    Persistent storage management on the M5Stick-C

    M5 Stick/StickC
    1
    1
    3.0k
    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.
    • antowanA
      antowan
      last edited by

      Hi,

      I would like to know if it is possible, and if yes how, could I write from micropython a file with telemetry data.
      Just as a precision if it matters, I am using VS code with the M5 plugin to run the python code on the M5Stick-C.

      I've tried the following as a test with no success.

      f = open("log.txt", "w+")
      f.write("Writing content from MicroPython")
      f.close()
      

      The file is created (but disappear after soft reboot) and stay empty.

      My understanding is that the "flash/" folder is mounted on a FAT filesystem.
      So I would assume that it is possible to write on the micro-controller memory in this space.

      Thank you by advance for your support.
      Regards,
      Antowan

      1 Reply Last reply Reply Quote 0
      • First post
        Last post