GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Files on the Spiffs

    Scheduled Pinned Locked Moved
    Comments & Feedback
    2
    7
    501
    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.
    • S
      Sato
      last edited by

      Hello,
      I think this is a question more directed at Kl3m3n.

      In Esp32 I use Spiffs in which I put small files, some more important than others. For security reasons, would it be possible to save 2 or 3 of this files in the Gui-O storage area of the phone?

      Best regards

      K 1 Reply Last reply Reply Quote 0
      • K
        kl3m3n @Sato
        last edited by

        @Sato Hi.

        Can you explain what are you trying to achieve?

        Do you need to transfer the file from Esp32 to mobile device? Do you need the contents of the file integrated into GUI-O protocol?

        I need some more information before I can see if what you need is even possible.

        Best regards,
        Kl3m3n

        S 1 Reply Last reply Reply Quote 0
        • S
          Sato @kl3m3n
          last edited by

          @kl3m3n, Hi

          I'll try to explain.
          I have some *.txt files saved on Spiffs of the Esp32. Some of them, everytime I connect to the Esp32, it opens and reads line by line and sends that content to be displayed in a widget in the Gui-O App. This works fine.
          In the Wi-Fi version with Esp32 I can send an email attaching these files and the issue is well resolved, even if there is a malfunction in the Esp32 Spiffs, I have the file data in the email.
          As I also have another version in which I use a GPRS modem, I can't send an email with attached files because I have very little data credit on the SIM card and I wan't use it for that purpose. For this reason, I thought it might be an alternative, whenever I need to, be able to save these files in the phone's storage too.

          Hope it make sense, thank you
          Regards

          K 1 Reply Last reply Reply Quote 0
          • K
            kl3m3n @Sato
            last edited by kl3m3n

            @Sato Did you se EXTF component in the manual? You can use this to save (among other things) data to a file on Android device. You can also read this file and send it line by line to ESP32.

            It is not ideal way to transfer files, but should cover your case?

            Best regards,
            Kl3m3n

            S 1 Reply Last reply Reply Quote 0
            • S
              Sato @kl3m3n
              last edited by

              @kl3m3n, Hi

              I think that can help. I will make experiments with it.

              Can i choose the filesnames myself? If yes, how long can be the max name lenght?

              Thank you
              Best regards

              K 1 Reply Last reply Reply Quote 0
              • K
                kl3m3n @Sato
                last edited by kl3m3n

                @Sato said in Files on the Spiffs:

                @kl3m3n, Hi

                I think that can help. I will make experiments with it.

                Can i choose the filesnames myself? If yes, how long can be the max name lenght?

                Thank you
                Best regards

                Yes, you can choose your file name. The maximum lenght is not limited by the GUI-O, but by underlying file system and other constraints. I would say you could safely use name lenghts up to 127 characters, but this is probably not practical...

                Best regards,
                Kl3m3n

                S 1 Reply Last reply Reply Quote 0
                • S
                  Sato @kl3m3n
                  last edited by

                  @kl3m3n

                  Thank you

                  Regards

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