Using ESP32 FTP Arduino Client for File Uploads

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024

ความคิดเห็น • 24

  • @TheTechToyz
    @TheTechToyz ปีที่แล้ว

    Can we auto backup image without hardcoding its name ? I am trying to auto backup a folder containing images on sd card to ftp can you suggest a code to make it work ?

  • @poralaxx
    @poralaxx 3 ปีที่แล้ว

    we are doing a project to create a dashboard using the esp32 with an infrared sensor. we're stuck at the part where we want the analog reading to continuously run in the Filezilla and putting that reading into a data to text file. idk if I made sense but is it possible?

  • @capistor1
    @capistor1 3 ปีที่แล้ว

    im not too familiar with the method you are showing but i was thinking. would i be able to send pictures from esp to a server thats hosted by a hosting service?

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      We are just running the FTP Server on a local machine in this video using Filezilla Server....
      If it was hosted by an external service it should just be changing the URL and credentials in the FTP Library Upload Example (depending on authentication requirements of the service)
      github.com/ldab/ESP32_FTPClient/blob/master/examples/upload_image/upload_image.ino

  • @olaoluwaraji2335
    @olaoluwaraji2335 ปีที่แล้ว

    Nice video. You explained what ftp_server should be. What about ftp_user and ftp_pass? Thank you

    • @noweare1
      @noweare1 ปีที่แล้ว +1

      You set that up on the server software. Then whatever it is you use it in your client software to be able to connect. Let me clarify more. You must have a log in on the server as a user to use ftp from another computer unless the server allows anonymous clients/users.

    • @olaoluwaraji2335
      @olaoluwaraji2335 ปีที่แล้ว

      @@noweare1 Thank you very much

  • @locinne
    @locinne 3 ปีที่แล้ว

    Hello, do you have experience also with FTP but trough GPRS? I'm trying to send image (stored in the SD card) on FTP server with MKR1400 due to a remote place. Thanks

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      We haven't run it through GPRS yet, but transferring the images from SD would be the same as shown in this video: th-cam.com/video/rbIxxLPVklg/w-d-xo.html

  • @israfuentes8372
    @israfuentes8372 3 ปีที่แล้ว

    While it work for an Audio File?
    edit: Does it have differences with an ESP8266?

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      I see no reason why not, the file is just uploaded as bytes (as with images). The ESP8266 would need a different FTP Library (e.g. github.com/dplasa/FTPClientServer). The Library Client example shows how to upload files to the server, an audio file should be no different.

  • @nikunjdobariya608
    @nikunjdobariya608 3 ปีที่แล้ว

    how do send .wav files stored in SPIFFS to server??

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      It would be the same as shown for the SD Card, but reading from Spiffs into the buffer:
      th-cam.com/video/rbIxxLPVklg/w-d-xo.html

  • @tapcity-iosandroidgameplay9946
    @tapcity-iosandroidgameplay9946 3 ปีที่แล้ว

    do you have an example on how to upload file from the sd card to server?

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      Not at present... but reading the file content back from the SD file in chunks/lines, and writing each to a file using ftp.WriteData() should work. See the Image Upload Example in the FTP Library, which would just need the SD additions wrapping around the WriteData, after creating the file on the server: github.com/ldab/ESP32_FTPClient/blob/master/examples/upload_image/upload_image.ino

    • @prost1297
      @prost1297 3 ปีที่แล้ว

      @@visualmicro4389 hello, very interesting and understandable, if it does not bother you, make an example of writing a file to ftp from a SD card

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      We now have a video for the SD file upload: th-cam.com/video/rbIxxLPVklg/w-d-xo.html

    • @prost1297
      @prost1297 3 ปีที่แล้ว

      @@visualmicro4389 Yes i tried send file by you example, but in monitor i get �/�?␏

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      ​@@prost1297 We can assist with issues more easily on our forum: www.visualmicro.com/forums
      Please register, and open an issue there and we can work out what is wrong.

  • @georgeyada
    @georgeyada 3 ปีที่แล้ว

    hello, nice work. could you do a example to upload txt file from sd card to ftp? i'm stuck on how to call the sd card in the ftp.WriteData area.
    really appreciate ! good job

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว +1

      Take a look at our latest video, this shows how to upload any file type using the Binary mode, and for just Txt files the ASCII (Type A) Mode can be used instead:
      th-cam.com/video/rbIxxLPVklg/w-d-xo.html

    • @georgeyada
      @georgeyada 3 ปีที่แล้ว

      @@visualmicro4389 already saw the video since u updated 2h ago. Thanks so much for that. Nobody showed that. Congratz and good job!!

  • @muhammadilhamm5388
    @muhammadilhamm5388 ปีที่แล้ว

    Hay bro, does it work for sftp server?