Skip to content

Commit

Permalink
Fixed compile error for FirebaseJsonArray remove.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Mar 4, 2022
1 parent 1cad5d3 commit 535c58c
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 37 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Firebase Arduino Client Library for ESP8266 and ESP32

Google's Firebase Arduino Client Library for ESP8266 and ESP32 v3.1.4
Google's Firebase Arduino Client Library for ESP8266 and ESP32 v3.1.5


This library supports ESP8266 and ESP32 MCU from Espressif. The following are platforms in which the libraries are also available (RTDB only).
Expand Down Expand Up @@ -1903,7 +1903,3 @@ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



![](/media/images/stop.svg)
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": "3.1.4",
"version": "3.1.5",
"keywords": "communication, REST, esp32, esp8266, arduino",
"description": "The library supports Firebase products e.g. Realtime database, Cloud Firestore database, Firebase Storage and Google Cloud Storage, Cloud Functions for Firebase and Cloud Messaging. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.",
"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=3.1.4
version=3.1.5

author=Mobizt

Expand Down
19 changes: 0 additions & 19 deletions media/images/stop.svg

This file was deleted.

8 changes: 4 additions & 4 deletions src/Firebase_ESP_Client.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#ifndef FIREBASE_CLIENT_VERSION
#define FIREBASE_CLIENT_VERSION "3.1.4"
#define FIREBASE_CLIENT_VERSION "3.1.5"
#endif

/**
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h v3.1.4
* Google's Firebase ESP Client Main class, Firebase_ESP_Client.h v3.1.5
*
* This library supports Espressif ESP8266 and ESP32 MCUs
*
* Created March 1, 2022
* Created March 5, 2022
*
* Updates:
* - Fixed legacy token authentication issue.
* - Fixed compile error for FirebaseJsonArray remove.
*
*
* This work is a part of Firebase ESP Client library
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 v3.1.4
Google's Firebase Arduino Client Library for ESP8266 and ESP32 v3.1.5


The default filessystem used in the library is flash and SD.
Expand Down
4 changes: 2 additions & 2 deletions src/json/FirebaseJson.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 2.6.13
* FirebaseJson, version 2.6.14
*
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
*
* Created February 28, 2022
* Created March 5, 2022
*
* Features
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")
Expand Down
15 changes: 11 additions & 4 deletions src/json/FirebaseJson.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 2.6.13
* FirebaseJson, version 2.6.14
*
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
*
* Created February 28, 2022
* Created March 5, 2022
*
* Features
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")
Expand Down Expand Up @@ -46,7 +46,14 @@
#undef max
#endif
#if __has_include(<FS.h>)

#if defined(ESP8266)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#include <FS.h>

#define MB_JSON_FS_H
#endif
#endif
Expand Down Expand Up @@ -2032,9 +2039,9 @@ class FirebaseJsonArray : public FirebaseJsonBase
auto dataRemoveHandler(T arg) -> typename MB_ENABLE_IF<is_string<T>::value, bool>::type
{
uint32_t addr = 0;
mRemove(getStr(arg, addr));
bool ret = mRemove(getStr(arg, addr));
delAddr(addr);
return *this;
return ret;
}

template <typename T>
Expand Down

0 comments on commit 535c58c

Please sign in to comment.