From 504a97e0949224a217adc039e19dee64b15f55de Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 12 Sep 2023 14:16:07 +0700 Subject: [PATCH] Fix null pointer exception for external client. --- .../Generic/StreamCallback/StreamCallback.ino | 4 ++-- library.json | 4 ++-- library.properties | 2 +- src/FB_Const.h | 2 +- src/FB_Error.h | 2 +- src/FB_Network.h | 2 +- src/FB_Utils.h | 2 +- src/Firebase.cpp | 2 +- src/Firebase.h | 2 +- src/FirebaseFS.h | 2 +- src/core/FirebaseCore.cpp | 22 ++++++++++++------- src/core/FirebaseCore.h | 6 ++--- src/core/Firebase_Client_Version.h | 4 ++-- src/firestore/FB_Firestore.cpp | 2 +- src/firestore/FB_Firestore.h | 2 +- src/functions/FB_Functions.cpp | 2 +- src/functions/FB_Functions.h | 2 +- src/functions/FunctionsConfig.cpp | 2 +- src/functions/FunctionsConfig.h | 2 +- src/functions/PocicyBuilder.cpp | 2 +- src/functions/PolicyBuilder.h | 2 +- src/gcs/GCS.cpp | 2 +- src/gcs/GCS.h | 2 +- src/message/FCM.cpp | 2 +- src/message/FCM.h | 2 +- src/message/LFCM.h | 2 +- src/rtdb/FB_RTDB.cpp | 2 +- src/rtdb/FB_RTDB.h | 2 +- src/rtdb/QueryFilter.cpp | 2 +- src/rtdb/QueryFilter.h | 2 +- src/rtdb/QueueInfo.cpp | 2 +- src/rtdb/QueueInfo.h | 2 +- src/rtdb/QueueManager.cpp | 2 +- src/rtdb/QueueManager.h | 2 +- src/rtdb/stream/FB_MP_Stream.cpp | 2 +- src/rtdb/stream/FB_MP_Stream.h | 2 +- src/rtdb/stream/FB_Stream.cpp | 2 +- src/rtdb/stream/FB_Stream.h | 2 +- src/session/FB_Session.cpp | 15 ++++++------- src/session/FB_Session.h | 6 ++--- src/storage/FCS.cpp | 2 +- src/storage/FCS.h | 2 +- 42 files changed, 68 insertions(+), 63 deletions(-) diff --git a/examples/ExternalClient/RTDB/Generic/StreamCallback/StreamCallback.ino b/examples/ExternalClient/RTDB/Generic/StreamCallback/StreamCallback.ino index dc5493dec..9e8ce1264 100644 --- a/examples/ExternalClient/RTDB/Generic/StreamCallback/StreamCallback.ino +++ b/examples/ExternalClient/RTDB/Generic/StreamCallback/StreamCallback.ino @@ -57,8 +57,8 @@ void networkConnection() void networkStatusRequestCallback() { // Set the network status based on your network client - fbdo.setNetworkStatus(true /* or false */); - stream.setNetworkStatus(true /* or false */); + fbdo.setNetworkStatus(false /* or true */); + stream.setNetworkStatus(false /* or true */); } void streamCallback(FirebaseStream data) diff --git a/library.json b/library.json index 47c75dcc6..592630389 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { - "name": "Firebase Arduino Client Library", - "version": "4.4.3", + "name": "Firebase Arduino Client Library for ESP8266 and ESP32", + "version": "4.4.4", "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": { diff --git a/library.properties b/library.properties index 78dc698cc..5244ae358 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=Firebase Arduino Client Library for ESP8266 and ESP32 -version=4.4.3 +version=4.4.4 author=Mobizt diff --git a/src/FB_Const.h b/src/FB_Const.h index a80e28400..d7d717516 100644 --- a/src/FB_Const.h +++ b/src/FB_Const.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/FB_Error.h b/src/FB_Error.h index ad719e35b..61ba1d38d 100644 --- a/src/FB_Error.h +++ b/src/FB_Error.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/FB_Network.h b/src/FB_Network.h index 645929f09..eb0cd2923 100644 --- a/src/FB_Network.h +++ b/src/FB_Network.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/FB_Utils.h b/src/FB_Utils.h index 2a8b8813b..28bf5269d 100644 --- a/src/FB_Utils.h +++ b/src/FB_Utils.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/Firebase.cpp b/src/Firebase.cpp index 4aa65f448..3a44e408d 100644 --- a/src/Firebase.cpp +++ b/src/Firebase.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/Firebase.h b/src/Firebase.h index b7f1fde1b..04dd6d442 100644 --- a/src/Firebase.h +++ b/src/Firebase.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/FirebaseFS.h b/src/FirebaseFS.h index 2f35811e2..7d383cc09 100644 --- a/src/FirebaseFS.h +++ b/src/FirebaseFS.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/core/FirebaseCore.cpp b/src/core/FirebaseCore.cpp index 9805847fb..e24851257 100644 --- a/src/core/FirebaseCore.cpp +++ b/src/core/FirebaseCore.cpp @@ -1,12 +1,12 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif /** - * Google's Firebase Token Management class, FirebaseCore.cpp version 1.0.0 + * Google's Firebase Token Management class, FirebaseCore.cpp version 1.0.1 * - * Created September 5, 2023 + * Created September 12, 2023 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt) @@ -939,9 +939,15 @@ void FirebaseCore::freeClient(Firebase_TCP_Client **client) _password = (*client)->_password; #endif } - delete *client; + + // Only internal client can be deleted + if (_cli_type == firebase_client_type_internal_basic_client) + delete *client; } - *client = nullptr; + + // Reset pointer in case internal client + if (_cli_type == firebase_client_type_internal_basic_client) + *client = nullptr; } void FirebaseCore::setTokenError(int code) @@ -1708,12 +1714,12 @@ bool FirebaseCore::reconnect() // otherwise the networkStatus will not update // and network cannot resume. - if (noClient) + if (noClient) newClient(&tcpClient); - reconnect(tcpClient, nullptr); + reconnect(tcpClient, nullptr); - if (noClient) + if (noClient) freeClient(&tcpClient); networkChecking = false; diff --git a/src/core/FirebaseCore.h b/src/core/FirebaseCore.h index 70bb84686..ff4acb941 100644 --- a/src/core/FirebaseCore.h +++ b/src/core/FirebaseCore.h @@ -1,12 +1,12 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif /** - * Google's Firebase Token Management class, FirebaseCore.h version 1.0.0 + * Google's Firebase Token Management class, FirebaseCore.h version 1.0.1 * - * Created September 5, 2023 + * Created September 12, 2023 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt) diff --git a/src/core/Firebase_Client_Version.h b/src/core/Firebase_Client_Version.h index 48d026969..d9356454d 100644 --- a/src/core/Firebase_Client_Version.h +++ b/src/core/Firebase_Client_Version.h @@ -1,6 +1,6 @@ #ifndef FIREBASE_CLIENT_VERSION -#define FIREBASE_CLIENT_VERSION "4.4.3" -#define FIREBASE_CLIENT_VERSION_NUM 40403 +#define FIREBASE_CLIENT_VERSION "4.4.4" +#define FIREBASE_CLIENT_VERSION_NUM 40404 /* The inconsistent file version checking to prevent mixed versions compilation. */ #define FIREBASE_CLIENT_VERSION_CHECK(ver) (ver == FIREBASE_CLIENT_VERSION_NUM) diff --git a/src/firestore/FB_Firestore.cpp b/src/firestore/FB_Firestore.cpp index 5a3967043..17da38222 100644 --- a/src/firestore/FB_Firestore.cpp +++ b/src/firestore/FB_Firestore.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/firestore/FB_Firestore.h b/src/firestore/FB_Firestore.h index fcec422dc..d978b24b6 100644 --- a/src/firestore/FB_Firestore.h +++ b/src/firestore/FB_Firestore.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/functions/FB_Functions.cpp b/src/functions/FB_Functions.cpp index 0f37208a5..c3d374793 100644 --- a/src/functions/FB_Functions.cpp +++ b/src/functions/FB_Functions.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/functions/FB_Functions.h b/src/functions/FB_Functions.h index b42d61f09..2095f9ba0 100644 --- a/src/functions/FB_Functions.h +++ b/src/functions/FB_Functions.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/functions/FunctionsConfig.cpp b/src/functions/FunctionsConfig.cpp index bb8189e50..9bd31448c 100644 --- a/src/functions/FunctionsConfig.cpp +++ b/src/functions/FunctionsConfig.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/functions/FunctionsConfig.h b/src/functions/FunctionsConfig.h index 3cfc5278b..137de4751 100644 --- a/src/functions/FunctionsConfig.h +++ b/src/functions/FunctionsConfig.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/functions/PocicyBuilder.cpp b/src/functions/PocicyBuilder.cpp index 90bdf1c1b..ef6b5e29e 100644 --- a/src/functions/PocicyBuilder.cpp +++ b/src/functions/PocicyBuilder.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/functions/PolicyBuilder.h b/src/functions/PolicyBuilder.h index 402ab9116..87866548c 100644 --- a/src/functions/PolicyBuilder.h +++ b/src/functions/PolicyBuilder.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/gcs/GCS.cpp b/src/gcs/GCS.cpp index 7b053f6f6..ea90d07a4 100644 --- a/src/gcs/GCS.cpp +++ b/src/gcs/GCS.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/gcs/GCS.h b/src/gcs/GCS.h index 67b8993aa..19124ba12 100644 --- a/src/gcs/GCS.h +++ b/src/gcs/GCS.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/message/FCM.cpp b/src/message/FCM.cpp index 783a0c57e..ea2a4f065 100644 --- a/src/message/FCM.cpp +++ b/src/message/FCM.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/message/FCM.h b/src/message/FCM.h index 1001ac210..9b30cfd3b 100644 --- a/src/message/FCM.h +++ b/src/message/FCM.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/message/LFCM.h b/src/message/LFCM.h index 640a38591..aa8682d99 100644 --- a/src/message/LFCM.h +++ b/src/message/LFCM.h @@ -1,6 +1,6 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/FB_RTDB.cpp b/src/rtdb/FB_RTDB.cpp index ae34d863c..5ba8d191e 100644 --- a/src/rtdb/FB_RTDB.cpp +++ b/src/rtdb/FB_RTDB.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/FB_RTDB.h b/src/rtdb/FB_RTDB.h index be4bcd6a8..643a779af 100644 --- a/src/rtdb/FB_RTDB.h +++ b/src/rtdb/FB_RTDB.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueryFilter.cpp b/src/rtdb/QueryFilter.cpp index 76f3ae2b2..f803df6bd 100644 --- a/src/rtdb/QueryFilter.cpp +++ b/src/rtdb/QueryFilter.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueryFilter.h b/src/rtdb/QueryFilter.h index 2220f893c..028ce3f27 100644 --- a/src/rtdb/QueryFilter.h +++ b/src/rtdb/QueryFilter.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueueInfo.cpp b/src/rtdb/QueueInfo.cpp index 4d4ac4ba3..01d2bc3eb 100644 --- a/src/rtdb/QueueInfo.cpp +++ b/src/rtdb/QueueInfo.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueueInfo.h b/src/rtdb/QueueInfo.h index ccbac6d68..0e4e8a87d 100644 --- a/src/rtdb/QueueInfo.h +++ b/src/rtdb/QueueInfo.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueueManager.cpp b/src/rtdb/QueueManager.cpp index e8309ca47..8979ba87c 100644 --- a/src/rtdb/QueueManager.cpp +++ b/src/rtdb/QueueManager.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/QueueManager.h b/src/rtdb/QueueManager.h index c0e8c4032..743dc7869 100644 --- a/src/rtdb/QueueManager.h +++ b/src/rtdb/QueueManager.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/stream/FB_MP_Stream.cpp b/src/rtdb/stream/FB_MP_Stream.cpp index dd106a89a..f353f4a71 100644 --- a/src/rtdb/stream/FB_MP_Stream.cpp +++ b/src/rtdb/stream/FB_MP_Stream.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/stream/FB_MP_Stream.h b/src/rtdb/stream/FB_MP_Stream.h index 213ecc039..b05b4a4b1 100644 --- a/src/rtdb/stream/FB_MP_Stream.h +++ b/src/rtdb/stream/FB_MP_Stream.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/stream/FB_Stream.cpp b/src/rtdb/stream/FB_Stream.cpp index 8697e4cb0..e9e913185 100644 --- a/src/rtdb/stream/FB_Stream.cpp +++ b/src/rtdb/stream/FB_Stream.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/rtdb/stream/FB_Stream.h b/src/rtdb/stream/FB_Stream.h index a95a0283f..7a9df4c64 100644 --- a/src/rtdb/stream/FB_Stream.h +++ b/src/rtdb/stream/FB_Stream.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/session/FB_Session.cpp b/src/session/FB_Session.cpp index 249d8ee23..3f6a9f559 100644 --- a/src/session/FB_Session.cpp +++ b/src/session/FB_Session.cpp @@ -1,12 +1,12 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif /** - * Google's Firebase Data class, FB_Session.cpp version 1.4.0 + * Google's Firebase Data class, FB_Session.cpp version 1.4.1 * - * Created September 5, 2023 + * Created September 12, 2023 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt) @@ -74,14 +74,13 @@ FirebaseData::~FirebaseData() void FirebaseData::setGenericClient(Client *client, FB_NetworkConnectionRequestCallback networkConnectionCB, FB_NetworkStatusRequestCallback networkStatusCB) { - if (client) + if (client && networkConnectionCB && networkStatusCB) { _client = client; - Core.setTCPClient(&tcpClient); + tcpClient.setClient(_client, networkConnectionCB, networkStatusCB); } - - if (_networkConnectionCB && _networkStatusCB) - tcpClient.setClient(_client, _networkConnectionCB, _networkStatusCB); + // Client type shall be set before calling this. + Core.setTCPClient(&tcpClient); } void FirebaseData::setGSMClient(Client *client, void *modem, const char *pin, const char *apn, const char *user, const char *password) diff --git a/src/session/FB_Session.h b/src/session/FB_Session.h index 58b4403f5..07d8e0850 100644 --- a/src/session/FB_Session.h +++ b/src/session/FB_Session.h @@ -1,12 +1,12 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif /** - * Google's Firebase Data class, FB_Session.h version 1.4.0 + * Google's Firebase Data class, FB_Session.h version 1.4.1 * - * Created September 5, 2023 + * Created September 12, 2023 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt) diff --git a/src/storage/FCS.cpp b/src/storage/FCS.cpp index 158140d9e..81c40c160 100644 --- a/src/storage/FCS.cpp +++ b/src/storage/FCS.cpp @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif diff --git a/src/storage/FCS.h b/src/storage/FCS.h index e778b7f43..dcc9b0f0e 100644 --- a/src/storage/FCS.h +++ b/src/storage/FCS.h @@ -1,5 +1,5 @@ #include "./core/Firebase_Client_Version.h" -#if !FIREBASE_CLIENT_VERSION_CHECK(40403) +#if !FIREBASE_CLIENT_VERSION_CHECK(40404) #error "Mixed versions compilation." #endif