Skip to content

Commit

Permalink
Fix too large BearSSL reserved rx buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Nov 6, 2019
1 parent decb3cd commit c4a1c66
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 17 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.5
Google's Firebase Realtime Database Arduino Library for ESP8266 v 2.6.6


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.5 (comes with FirebaseJson v 2.2.4) 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.6.6 (comes with FirebaseJson v 2.2.4) 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.5
version=2.6.6

author=Mobizt

Expand Down
9 changes: 4 additions & 5 deletions src/FirebaseESP8266.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/*
* Google's Firebase Realtime Database Arduino Library for ESP8266, version 2.6.5
* Google's Firebase Realtime Database Arduino Library for ESP8266, version 2.6.6
*
* November 3, 2019
* November 7, 2019
*
* Feature Added:
* - Low memory BearSSL enable/disable.
*
* Feature Fixed:
* - Large file (SPIFFS and SD) get's truncated data.
* - BearSSL reserved rx buffer.
*
*
* This library provides ESP8266 to perform REST API by GET PUT, POST, PATCH, DELETE data from/to with Google's Firebase database using get, set, update
Expand Down Expand Up @@ -4387,7 +4386,7 @@ void FirebaseESP8266::setSecure(FirebaseData &dataObj)
dataObj._net._bsslLowBuf= _bsslLowBuf;
if (dataObj._net._certType == -1)
{
if (!_clockReady && _rootCA)
if (!_clockReady)
setClock();

dataObj._net._clockReady = _clockReady;
Expand Down
7 changes: 3 additions & 4 deletions src/FirebaseESP8266.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/*
* Google's Firebase Realtime Database Arduino Library for ESP8266, version 2.6.5
* Google's Firebase Realtime Database Arduino Library for ESP8266, version 2.6.6
*
* November 3, 2019
* November 7, 2019
*
* Feature Added:
* - Low memory BearSSL enable/disable.
*
* Feature Fixed:
* - Large file (SPIFFS and SD) get's truncated data.
* - BearSSL reserved rx buffer.
*
*
* This library provides ESP8266 to perform REST API by GET PUT, POST, PATCH, DELETE data from/to with Google's Firebase database using get, set, update
Expand Down
6 changes: 3 additions & 3 deletions src/FirebaseESP8266HTTPClient.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* HTTP Client wrapper v1.0.6
* HTTP Client wrapper v1.0.5
*
* The MIT License (MIT)
* Copyright (c) 2019 K. Suwatchai (Mobizt)
Expand Down Expand Up @@ -46,7 +46,7 @@ void FirebaseHTTPClient::setRootCA(const char *rootCA)
#ifndef USING_AXTLS

if(_bsslLowBuf)
_client->setBufferSizes(1024, 512);
_client->setBufferSizes(512, 512);

if (rootCA)
_client->setTrustAnchors(new X509List(rootCA));
Expand Down Expand Up @@ -76,7 +76,7 @@ void FirebaseHTTPClient::setRootCAFile(std::string &rootCAFile, uint8_t storageT
#ifndef USING_AXTLS
_sdPin = sdPin;
if(_bsslLowBuf)
_client->setBufferSizes(1024, 512);
_client->setBufferSizes(512, 512);

if (_clockReady && rootCAFile.length() > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/FirebaseESP8266HTTPClient.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* HTTP Client wrapper v1.0.6
* HTTP Client wrapper v1.0.5
*
* This library provides ESP8266 to perform REST API by GET PUT, POST, PATCH, DELETE data from/to with Google's Firebase database using get, set, update
* and delete calls.
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.5
Google's Firebase Realtime Database Arduino Library for ESP8266 v 2.6.6


## Global functions
Expand Down

0 comments on commit c4a1c66

Please sign in to comment.