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

Files on the Spiffs

Scheduled Pinned Locked Moved
Comments & Feedback
2
7
481
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 10 Jul 2024, 16:47

    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 11 Jul 2024, 17:50 Reply Quote 0
    • K
      kl3m3n @Sato
      last edited by 11 Jul 2024, 17:50

      @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 11 Jul 2024, 18:19 Reply Quote 0
      • S
        Sato @kl3m3n
        last edited by 11 Jul 2024, 18:19

        @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 12 Jul 2024, 08:07 Reply Quote 0
        • K
          kl3m3n @Sato
          last edited by kl3m3n 7 Dec 2024, 10:09 12 Jul 2024, 08:07

          @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 12 Jul 2024, 11:01 Reply Quote 0
          • S
            Sato @kl3m3n
            last edited by 12 Jul 2024, 11:01

            @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 13 Jul 2024, 11:35 Reply Quote 0
            • K
              kl3m3n @Sato
              last edited by kl3m3n 13 Jul 2024, 11:35

              @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 14 Jul 2024, 22:07 Reply Quote 0
              • S
                Sato @kl3m3n
                last edited by 14 Jul 2024, 22:07

                @kl3m3n

                Thank you

                Regards

                1 Reply Last reply Reply Quote 0
                2 out of 7
                • First post
                  2/7
                  Last post