Skip to content

Commit

Permalink
Fix FirebaseJson set/remove bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Nov 14, 2019
1 parent c786dfe commit 85f732b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Firebase Realtime Database Arduino Library for ESP8266


Google's Firebase Realtime Database Arduino Library for ESP8266 v 2.6.9
Google's Firebase Realtime Database Arduino Library for ESP8266 v 2.7.0


This library supports ESP8266 MCU from Espressif. The following are platforms which library are also available.
Expand Down Expand Up @@ -48,7 +48,7 @@ This library supports ESP8266 MCU from Espressif. The following are platforms wh

## Changes from earlier version

For library v 2.6.9 (comes with FirebaseJson v 2.2.6) or later, FirebaseJson object will be used to handle JSON data instead of JSON string which, the following functions are affected:
For library v 2.7.0 (comes with FirebaseJson v 2.2.7) or later, FirebaseJson object will be used to handle JSON data instead of JSON string which, the following functions are affected:

getJson, setJson, pushJson, updateNode and updateNodeSilent.

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 ESP8266 Client

version=2.6.9
version=2.7.0

author=Mobizt

Expand Down
4 changes: 2 additions & 2 deletions src/FirebaseESP8266.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Google's Firebase Realtime Database Arduino Library for ESP8266, version 2.6.9
* Google's Firebase Realtime Database Arduino Library for ESP8266, version 2.7.0
*
* November 14, 2019
* November 15, 2019
*
* Feature Added:
*
Expand Down
4 changes: 2 additions & 2 deletions src/FirebaseESP8266.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Google's Firebase Realtime Database Arduino Library for ESP8266, version 2.6.9
* Google's Firebase Realtime Database Arduino Library for ESP8266, version 2.7.0
*
* November 14, 2019
* November 15, 2019
*
* Feature Added:
*
Expand Down
8 changes: 4 additions & 4 deletions src/FirebaseJson.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 2.2.6
* FirebaseJson, version 2.2.7
*
* The Easiest ESP8266/ESP32 Arduino library for parse, create and edit JSON object using relative path.
*
* November 14, 2019
* November 15, 2019
*
* Features
* - None recursive operations
Expand Down Expand Up @@ -628,7 +628,7 @@ bool FirebaseJson::_updateTkIndex(uint16_t index, int &depth, char *searchKey, i
_el.erase(_el.begin());
if (printMode != PRINT_MODE_NONE && !skip)
{
if (len > 0)
if (len > 0 && !_arrReplaced)
{
if (ref)
_jsonData._dbuf += _cm;
Expand All @@ -650,7 +650,7 @@ bool FirebaseJson::_updateTkIndex(uint16_t index, int &depth, char *searchKey, i

if (!_arrReplaced)
{
if (_el[i].type == JSMN_OBJECT && !_arrReplaced)
if (_el[i].type == JSMN_OBJECT)
{
if (printMode == PRINT_MODE_PRETTY)
{
Expand Down
4 changes: 2 additions & 2 deletions src/FirebaseJson.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* FirebaseJson, version 2.2.6
* FirebaseJson, version 2.2.7
*
* The Easiest ESP8266/ESP32 Arduino library for parse, create and edit JSON object using relative path.
*
* November 14, 2019
* November 15, 2019
*
* Features
* - None recursive operations
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 Realtime Database Arduino Library for ESP8266


Google's Firebase Realtime Database Arduino Library for ESP8266 v 2.6.9
Google's Firebase Realtime Database Arduino Library for ESP8266 v 2.7.0


## Global functions
Expand Down

0 comments on commit 85f732b

Please sign in to comment.