Skip to content

Commit a32b5f8

Browse files
committed
Fix compilation error.
1 parent 5f6064b commit a32b5f8

8 files changed

+25
-23
lines changed

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": "4.2.5",
3+
"version": "4.2.7",
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=4.2.5
3+
version=4.2.7
44

55
author=Mobizt
66

src/FB_Const.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/**
3-
* Created November 9, 2022
3+
* Created November 15, 2022
44
*
55
* This work is a part of Firebase ESP Client library
66
* Copyright (c) 2022 K. Suwatchai (Mobizt)
@@ -58,6 +58,15 @@
5858
#define OTA_UPDATE_ENABLED
5959
#endif
6060

61+
#if defined(ESP32)
62+
#if defined(ESP_ARDUINO_VERSION)
63+
#if ESP_ARDUINO_VERSION > ESP_ARDUINO_VERSION_VAL(2, 0, 1)
64+
#define ESP32_GT_2_0_1_FS_MEMORY_FIX
65+
#endif
66+
#endif
67+
#endif
68+
69+
6170
#if defined(FIREBASE_ESP_CLIENT)
6271
#define FIREBASE_STREAM_CLASS FirebaseStream
6372
#define FIREBASE_MP_STREAM_CLASS MultiPathStream

src/FirebaseESP32.h

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

55
/**
6-
* Google's Firebase Realtime Database Arduino Library for ESP32, v4.2.5
6+
* Google's Firebase Realtime Database Arduino Library for ESP32, v4.2.7
77
*
8-
* Created November 10, 2022
8+
* Created November 15, 2022
99
*
1010
* Updates:
11-
* - Fix filesystem was not mount before file removing issue.
12-
* - Update TCP client.
11+
* - Fix compilation error.
1312
*
1413
*
1514
* This library provides ESP32 to perform REST API by GET PUT, POST, PATCH,

src/sslclient/esp32/MB_ESP32_SSLClient.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* The Mobizt ESP32 SSL Client Class, MB_ESP32_SSLClient.cpp v1.0.1
2+
* The Mobizt ESP32 SSL Client Class, MB_ESP32_SSLClient.cpp v1.0.2
33
*
4-
* Created November 8, 2022
4+
* Created November 15, 2022
55
*
66
* The MIT License (MIT)
77
* Copyright (c) 2022 K. Suwatchai (Mobizt)
@@ -103,8 +103,6 @@ void MB_ESP32_SSLClient::stop()
103103
if (!_ssl->basic_client)
104104
return;
105105

106-
_host.clear();
107-
108106
stop_tcp_connection(_ssl, _CA_cert, _cert, _private_key);
109107

110108
if (_ssl->basic_client)

src/sslclient/esp32/MB_ESP32_SSLClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* The Mobizt ESP32 SSL Client Class, MB_ESP32_SSLClient.h v1.0.1
2+
* The Mobizt ESP32 SSL Client Class, MB_ESP32_SSLClient.h v1.0.2
33
*
4-
* Created November 8, 2022
4+
* Created November 15, 2022
55
*
66
* The MIT License (MIT)
77
* Copyright (c) 2022 K. Suwatchai (Mobizt)

src/sslclient/esp8266/MB_ESP8266_SSLClient.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
*
3-
* The Mobizt ESP8266 SSL Client Class, MB_ESP8266_SSLClient.cpp v1.0.0
3+
* The Mobizt ESP8266 SSL Client Class, MB_ESP8266_SSLClient.cpp v1.0.1
44
*
5-
* Created November 2, 2022
5+
* Created November 15, 2022
66
*
77
* The MIT License (MIT)
88
* Copyright (c) 2022 K. Suwatchai (Mobizt)
@@ -120,7 +120,6 @@ void MB_ESP8266_SSLClient::setTimeout(unsigned long timeout)
120120

121121
void MB_ESP8266_SSLClient::stop()
122122
{
123-
_host.clear();
124123
WCS_CLASS::stop();
125124
}
126125

src/sslclient/esp8266/MB_ESP8266_SSLClient.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
*
3-
* The Mobizt ESP8266 SSL Client Class, MB_ESP8266_SSLClient.h v1.0.0
3+
* The Mobizt ESP8266 SSL Client Class, MB_ESP8266_SSLClient.h v1.0.1
44
*
5-
* Created November 2, 2022
5+
* Created November 15, 2022
66
*
77
* The MIT License (MIT)
88
* Copyright (c) 2022 K. Suwatchai (Mobizt)
@@ -33,12 +33,9 @@
3333

3434
#include <vector>
3535
#include <WiFiClient.h>
36-
3736
#include "MB_BearSSL.h"
38-
39-
#if defined(ESP8266)
4037
#include <StackThunk.h>
41-
#endif
38+
4239

4340
#include "ESP8266_SSL_Client.h"
4441

0 commit comments

Comments
 (0)