Chat freely about anything...

User avatar
By danbicks
#76110 Gdrive is a much better option.

Many of us here use MQTT and even FTP to upload data from an ESP, this concept is nothing new. I even use FTP to download specific files required for ESP config / licence validation etc hosted from a VPS.

Good luck with your venture, consider in the future to at least start with bidirectional communication functions in place (Upload / Download) before requesting donations.

Dans
User avatar
By lucasromeiro
#76134
danbicks wrote:Gdrive is a much better option.

Many of us here use MQTT and even FTP to upload data from an ESP, this concept is nothing new. I even use FTP to download specific files required for ESP config / licence validation etc hosted from a VPS.

Good luck with your venture, consider in the future to at least start with bidirectional communication functions in place (Upload / Download) before requesting donations.

Dans


My next project will be to create this library for Google Drive! Believe it will help more people! Thank you for your opinions!
User avatar
By lucasromeiro
#76205
danbicks wrote:Gdrive is a much better option.

Many of us here use MQTT and even FTP to upload data from an ESP, this concept is nothing new. I even use FTP to download specific files required for ESP config / licence validation etc hosted from a VPS.

Good luck with your venture, consider in the future to at least start with bidirectional communication functions in place (Upload / Download) before requesting donations.

Dans



Hello,
We launched an update today! Version 1.1.
Already available in Library Manager.
This version has the first download module!
It's only me developing this library, so it ends up being slower!
Thanks for the encouragement of everyone !!!
Any help is important to us!
Contact anyone who finds errors or needs help.
Hugs
User avatar
By marth909
#85165 I created a new api token in my dropbox account.
I uploaded the basic_upload example to my esp8266 board.

But for some reason it is getting Error! in the serial monitor. Any ideas why it is failing?
Thanks,

Here is my sketch:

/*
DropboxManager ESP8266

Copyright (c) 2018 Lucas Romeiro

Author: Lucas Romeiro
Contact: lucas_romeiro@hotmail.com

Example created to understand how file upload works.


*/

#include <ESP8266WiFi.h>
#include <DropboxManager.h>

const char* ssid = "<name here>";
const char* password = "<password here>";

DropboxMan myDrop;

void setup() {
Serial.begin(115200);
Serial.println();
Serial.print("connecting to ");
Serial.println(ssid);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());

SPIFFS.begin();
File file = SPIFFS.open("/test.txt", "a");
if (!file) {
Serial.println("Error on create file.");
} else {
Serial.println("file.println >> Test... From ESP8266!");
file.println("Test... From ESP8266!");
}
file.close();
SPIFFS.end();

}

void loop() {
//myDrop.begin("<your token here>");
myDrop.begin("Mth2-D_NtMQAAAAAAACspkIltDT8BBvhd8EYJfMV_uZrXwEyZe-zFRPIBbF6KN_n");
//if (myDrop.fileUpload("/test.txt", "/math/test.txt", 1)) { //Sending a test.txt file to /math/test.txt
if (myDrop.fileUpload("/test.txt", "/temp_humid/test.txt", 1)) { //Sending a test.txt file to /temp_humid/test.txt
Serial.println("File Sent!");
} else {
Serial.println("ERROR!");
}

while (true) {
yield();
ESP.wdtFeed();
}
}