Page 1 of 1

Stream sdcard data

Posted: Mon Jun 18, 2018 1:08 pm
by Ian777
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!

Re: Stream sdcard data

Posted: Mon Jun 18, 2018 4:07 pm
by fly135
There is a REST API for uploading files to google drive.

John A

Re: Stream sdcard data

Posted: Mon Jun 18, 2018 11:07 pm
by Ian777
Fly135,

thank you for the reply.

Are you referring to using the following?

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

Re: Stream sdcard data

Posted: Tue Jun 19, 2018 3:46 pm
by fly135
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