Skip to content

Commit

Permalink
Fix the missing token generation error status report and MultiPathStr…
Browse files Browse the repository at this point in the history
…eam::get memory leaks.
  • Loading branch information
mobizt committed Mar 25, 2021
1 parent 1a40578 commit ca40a63
Show file tree
Hide file tree
Showing 36 changed files with 3,727 additions and 3,518 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Firebase Arduino Client Library for ESP8266 and ESP32


Google's Firebase Arduino Client Library for ESP8266 and ESP32 v 2.0.10
Google's Firebase Arduino Client Library for ESP8266 and ESP32 v 2.0.11


This library supports ESP8266 and ESP32 MCU from Espressif. The following are platforms in which the libraries are also available (RTDB only).
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Firebase Arduino Client Library for ESP8266 and ESP32",
"version": "2.0.10",
"version": "2.0.11",
"keywords": "communication, REST, esp32, esp8266, arduino",
"description": "This client library provides the functions to work with Firebase Realtime database, Firestore, Storage and Cloud messaging.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=Firebase Arduino Client Library for ESP8266 and ESP32

version=2.0.10
version=2.0.11

author=Mobizt

Expand Down
8 changes: 4 additions & 4 deletions src/Firebase_ESP_Client.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h version 2.0.10
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h version 2.0.11
*
* This library supports Espressif ESP8266 and ESP32
*
* Created March 23, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down
8 changes: 4 additions & 4 deletions src/Firebase_ESP_Client.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h version 2.0.10
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h version 2.0.11
*
* This library supports Espressif ESP8266 and ESP32
*
* Created March 23, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Firebase Arduino Client Library for ESP8266 and ESP32


Google's Firebase Arduino Client Library for ESP8266 and ESP32 v 2.0.10
Google's Firebase Arduino Client Library for ESP8266 and ESP32 v 2.0.11


The default filessystem used in the library is flash and SD.
Expand Down
16 changes: 8 additions & 8 deletions src/firestore/FB_Firestore.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Google's Cloud Firestore class, Forestore.cpp version 1.0.3
* Google's Cloud Firestore class, Forestore.cpp version 1.0.5
*
* This library supports Espressif ESP8266 and ESP32
*
* Created February 21, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down Expand Up @@ -76,7 +76,7 @@ bool FB_Firestore::exportDocuments(FirebaseData *fbdo, const char *projectId, co
fbdo->_ss.json.add(tmp, fbdo->_ss.arr);
ut->delS(tmp);

fbdo->_ss.json._tostr(req.payload);
fbdo->_ss.json.int_tostr(req.payload);

return sendRequest(fbdo, &req);
}
Expand Down Expand Up @@ -115,7 +115,7 @@ bool FB_Firestore::importDocuments(FirebaseData *fbdo, const char *projectId, co
fbdo->_ss.json.add(tmp, fbdo->_ss.arr);
ut->delS(tmp);

fbdo->_ss.json._tostr(req.payload);
fbdo->_ss.json.int_tostr(req.payload);

return sendRequest(fbdo, &req);
}
Expand Down Expand Up @@ -213,7 +213,7 @@ bool FB_Firestore::runQuery(FirebaseData *fbdo, const char *projectId, const cha
}
ut->delS(tmp);

fbdo->_ss.json._tostr(req.payload);
fbdo->_ss.json.int_tostr(req.payload);
fbdo->_ss.json.clear();

return sendRequest(fbdo, &req);
Expand Down Expand Up @@ -262,7 +262,7 @@ bool FB_Firestore::listCollectionIds(FirebaseData *fbdo, const char *projectId,
fbdo->_ss.json.add(tmp, pageToken);
ut->delS(tmp);

fbdo->_ss.json._tostr(req.payload);
fbdo->_ss.json.int_tostr(req.payload);

return sendRequest(fbdo, &req);
}
Expand Down
8 changes: 4 additions & 4 deletions src/firestore/FB_Firestore.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Google's Cloud Firestore class, Forestore.h version 1.0.3
* Google's Cloud Firestore class, Forestore.h version 1.0.5
*
* This library supports Espressif ESP8266 and ESP32
*
* Created February 21, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down
18 changes: 9 additions & 9 deletions src/functions/FB_Functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*
* This library supports Espressif ESP8266 and ESP32
*
* Created March 23, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down Expand Up @@ -53,7 +53,7 @@ bool FB_Functions::callFunction(FirebaseData *fbdo, const char *projectId, const
char *tmp = ut->strP(fb_esp_pgm_str_135);
fbdo->_ss.json.clear();
fbdo->_ss.json.add(tmp, data);
fbdo->_ss.json._tostr(req.payload);
fbdo->_ss.json.int_tostr(req.payload);
fbdo->_ss.json.clear();
ut->delS(tmp);
return sendRequest(fbdo, &req);
Expand Down Expand Up @@ -230,7 +230,7 @@ bool FB_Functions::uploadSources(FirebaseData *fbdo, FunctionsConfig *config)
struct fb_esp_functions_req_t req;
req.requestType = fb_esp_functions_request_type_upload_bucket_sources;

fbdo->_ss.json._tostr(req.payload);
fbdo->_ss.json.int_tostr(req.payload);

fbdo->_ss.json.clear();

Expand Down Expand Up @@ -288,7 +288,7 @@ bool FB_Functions::deploy(FirebaseData *fbdo, const char *functionId, FunctionsC

t.clear();
std::string str;
fbdo->_ss.json._tostr(str);
fbdo->_ss.json.int_tostr(str);

fbdo->_ss.json.clear();
char *find = ut->strP(fb_esp_pgm_str_3);
Expand Down Expand Up @@ -325,7 +325,7 @@ bool FB_Functions::deploy(FirebaseData *fbdo, const char *functionId, FunctionsC
std::string().swap(t);
}

config->_funcCfg._tostr(req.payload);
config->_funcCfg.int_tostr(req.payload);
config->_funcCfg.clear();

return sendRequest(fbdo, &req);
Expand Down Expand Up @@ -377,7 +377,7 @@ bool FB_Functions::setIamPolicy(FirebaseData *fbdo, const char *projectId, const
ut->delS(tmp);
}

fbdo->_ss.json._tostr(req.payload);
fbdo->_ss.json.int_tostr(req.payload);
fbdo->_ss.json.clear();

return sendRequest(fbdo, &req);
Expand Down Expand Up @@ -497,7 +497,7 @@ bool FB_Functions::generateDownloadUrl(FirebaseData *fbdo, const char *projectId
ut->delS(tmp);
}

fbdo->_ss.json._tostr(req.payload);
fbdo->_ss.json.int_tostr(req.payload);
fbdo->_ss.json.clear();

return sendRequest(fbdo, &req);
Expand Down
6 changes: 3 additions & 3 deletions src/functions/FB_Functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*
* This library supports Espressif ESP8266 and ESP32
*
* Created March 23, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down
10 changes: 5 additions & 5 deletions src/functions/PocicyBuilder.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Google's IAM Policy Builder class, PolicyBuilder.cpp version 1.0.0
* Google's IAM Policy Builder class, PolicyBuilder.cpp version 1.0.1
*
* This library supports Espressif ESP8266 and ESP32
*
* Created February 17, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down Expand Up @@ -346,7 +346,7 @@ void PolicyBuilder::toString(String &s, bool prettify)

void PolicyBuilder::_toString(std::string &s, bool prettify)
{
json._tostr(s, prettify);
json.int_tostr(s, prettify);
}

#endif
8 changes: 4 additions & 4 deletions src/functions/PolicyBuilder.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Google's IAM Policy Builder class, PolicyBuilder.h version 1.0.0
* Google's IAM Policy Builder class, PolicyBuilder.h version 1.0.1
*
* This library supports Espressif ESP8266 and ESP32
*
* Created February 17, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down
8 changes: 4 additions & 4 deletions src/gcs/GCS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*
* This library supports Espressif ESP8266 and ESP32
*
* Created March 23, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down Expand Up @@ -554,7 +554,7 @@ bool GG_CloudStorage::gcs_sendRequest(FirebaseData *fbdo, struct fb_esp_gcs_req_

bool hasProps = false;
setRequestproperties(req, &fbdo->_ss.json, hasProps);
fbdo->_ss.json._tostr(payload);
fbdo->_ss.json.int_tostr(payload);

ut->appendP(header, fb_esp_pgm_str_12);

Expand Down
6 changes: 3 additions & 3 deletions src/gcs/GCS.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*
* This library supports Espressif ESP8266 and ESP32
*
* Created March 23, 2021
* Created March 25, 2021
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2020, 2021 K. Suwatchai (Mobizt)
* Copyright (c) 2021 K. Suwatchai (Mobizt)
*
*
* Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down
Loading

0 comments on commit ca40a63

Please sign in to comment.