Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work with latest Arduino Release connection client insecured #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/DropboxManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ PARA EXPLICAÇÕES EM PORTUGUES, CONSULTAR O ARQUIVO “README.md” QUE SE ENCO
#define content_type_urlencoded "Content-Type: application/x-www-form-urlencoded\r\n"

DropboxMan::DropboxMan(){

client.setInsecure(); // Add this if you are using latest Arduino Firmware
}

void DropboxMan::begin(String token){
Expand Down Expand Up @@ -197,7 +197,7 @@ String DropboxMan::getToken(String code){
return "FAIL: Big code!";
}

WiFiClientSecure client;

//WiFiClientSecure *client= new WiFiClientSecure;
#ifdef debug_mode
debug_mode.println("Connecting to Dropbox...");
Expand Down Expand Up @@ -273,7 +273,7 @@ bool DropboxMan::fileUpload(String localFile, String address, bool type){
}else{
_mode="add";
}
WiFiClientSecure client;

//WiFiClientSecure *client= new WiFiClientSecure;
#ifdef debug_mode
debug_mode.println("Connecting to Dropbox...");
Expand Down Expand Up @@ -375,7 +375,7 @@ bool DropboxMan::stringUpload(String data, String address, bool type){
}else{
_mode="add";
}
WiFiClientSecure client;

#ifdef debug_mode
debug_mode.println("Connecting to Dropbox...");
#endif
Expand Down Expand Up @@ -442,7 +442,7 @@ bool DropboxMan::stringUpload(String data, String address, bool type){
bool DropboxMan::fileDownload(String localFile, String address, bool type){


WiFiClientSecure client;

//WiFiClientSecure *client= new WiFiClientSecure;
#ifdef debug_mode
debug_mode.println("Connecting to Dropbox...");
Expand Down
2 changes: 1 addition & 1 deletion src/DropboxManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class DropboxMan{

private:
String _token;

WiFiClientSecure client;
};

#endif