Skip to content

Commit 7967d1e

Browse files
committed
Fixed compile error for FirebaseJsonArray remove.
1 parent 534a746 commit 7967d1e

File tree

8 files changed

+22
-36
lines changed

8 files changed

+22
-36
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4390772.svg)](https://doi.org/10.5281/zenodo.4390772)
44

55

6-
Google's Firebase Realtime Database Arduino Library for ESP32 v3.15.4
6+
Google's Firebase Realtime Database Arduino Library for ESP32 v3.15.5
77

88

99
This library supports ESP32 MCU from Espressif. The following are platforms in which libraries are also available.
@@ -1710,6 +1710,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17101710
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17111711
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17121712
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1713-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1714-
1715-
![](/media/images/stop.svg)
1713+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Firebase ESP32 Client",
3-
"version": "3.15.4",
3+
"version": "3.15.5",
44
"keywords": "communication, REST, esp32, arduino",
55
"description": "The secure, fast and reliable Firebase Realtime database library to read, store, update, delete, listen, backup, and restore data. You can also read and modify the database security rules with this library.",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=Firebase ESP32 Client
22

3-
version=3.15.4
3+
version=3.15.5
44

55
author=Mobizt
66

media/images/stop.svg

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/FirebaseESP32.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#ifndef FIREBASE_CLIENT_VERSION
2-
#define FIREBASE_CLIENT_VERSION "3.15.4"
2+
#define FIREBASE_CLIENT_VERSION "3.15.5"
33
#endif
44

55
/**
6-
* Google's Firebase Realtime Database Arduino Library for ESP32, v3.15.4
6+
* Google's Firebase Realtime Database Arduino Library for ESP32, v3.15.5
77
*
8-
* Created March 1, 2022
8+
* Created March 5, 2022
99
*
1010
* Updates:
11-
* - Fixed legacy token authentication issue.
11+
* - Fixed compile error for FirebaseJsonArray remove.
1212
*
1313
*
1414
* This library provides ESP32 to perform REST API by GET PUT, POST, PATCH,

src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Firebase Realtime Database Arduino Library for ESP32
22

33

4-
Google's Firebase Realtime Database Arduino Library for ESP32 v3.15.4
4+
Google's Firebase Realtime Database Arduino Library for ESP32 v3.15.5
55

66

77

src/json/FirebaseJson.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
* FirebaseJson, version 2.6.13
2+
* FirebaseJson, version 2.6.14
33
*
44
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
55
*
6-
* Created February 28, 2022
6+
* Created March 5, 2022
77
*
88
* Features
99
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")

src/json/FirebaseJson.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
* FirebaseJson, version 2.6.13
2+
* FirebaseJson, version 2.6.14
33
*
44
* The Easiest Arduino library to parse, create and edit JSON object using a relative path.
55
*
6-
* Created February 28, 2022
6+
* Created March 5, 2022
77
*
88
* Features
99
* - Using path to access node element in search style e.g. json.get(result,"a/b/c")
@@ -46,7 +46,14 @@
4646
#undef max
4747
#endif
4848
#if __has_include(<FS.h>)
49+
50+
#if defined(ESP8266)
51+
#pragma GCC diagnostic push
52+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
53+
#endif
54+
4955
#include <FS.h>
56+
5057
#define MB_JSON_FS_H
5158
#endif
5259
#endif
@@ -2032,9 +2039,9 @@ class FirebaseJsonArray : public FirebaseJsonBase
20322039
auto dataRemoveHandler(T arg) -> typename MB_ENABLE_IF<is_string<T>::value, bool>::type
20332040
{
20342041
uint32_t addr = 0;
2035-
mRemove(getStr(arg, addr));
2042+
bool ret = mRemove(getStr(arg, addr));
20362043
delAddr(addr);
2037-
return *this;
2044+
return ret;
20382045
}
20392046

20402047
template <typename T>

0 commit comments

Comments
 (0)