Stream sdcard data

Ian777
Posts: 21
Joined: Sun Jun 17, 2018 11:31 pm

Stream sdcard data

Postby Ian777 » Mon Jun 18, 2018 1:08 pm

hey everyone,

I've used a few ports on the esp32(both micropy and lua-rtos) but I've reverted back to the arduino IDE.

I've got wifi connectivity, http and sockets going.

I'm trying to move a little closer to my overall goal, but can't seem to find too much on it.

Essentially I'd like to read in a txt file from an sdcard and publish it to google drive. I can't seem to find any functions which allow a file to be streamed directly, so I have a feeling I need to read in chunks of the sdcard into a buffer and send it section by section?

Are there any examples or could anyone provide some advice as to how I can accomplish this?

Thanks in advance!

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Stream sdcard data

Postby fly135 » Mon Jun 18, 2018 4:07 pm

There is a REST API for uploading files to google drive.

John A

Ian777
Posts: 21
Joined: Sun Jun 17, 2018 11:31 pm

Re: Stream sdcard data

Postby Ian777 » Mon Jun 18, 2018 11:07 pm

Fly135,

thank you for the reply.

Are you referring to using the following?

https://developers.google.com/drive/api ... ple-upload

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Stream sdcard data

Postby fly135 » Tue Jun 19, 2018 3:46 pm

Yes. I didn't look into it much and was confused as to where you assign the file name. But I also saw that Goggle Drive doesn't directly support FTP, so figured the REST API was the best option.

John A

Who is online

Users browsing this forum: Bing [Bot] and 142 guests