Skip to content

Commit 574bda4

Browse files
committed
Fix the compatibility issue of missing fb_esp_rtdb_data_type values in firebase_rtdb_data_type enums.
1 parent ac006e6 commit 574bda4

29 files changed

+53
-53
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.4.4",
3+
"version": "4.4.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=4.4.4
3+
version=4.4.5
44

55
author=Mobizt
66

src/FB_Const.h

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

66
/**
7-
* Created September 5, 2023
7+
* Created September 12, 2023
88
*
99
* The MIT License (MIT)
1010
* Copyright (c) 2023 K. Suwatchai (Mobizt)
@@ -186,6 +186,7 @@ enum firebase_con_mode
186186

187187
enum firebase_data_type
188188
{
189+
// Do not changes the order as it used by firebase_rtdb_data_type
189190
d_any = 0,
190191
d_null,
191192
d_integer,
@@ -205,15 +206,27 @@ enum firebase_data_type
205206
enum firebase_rtdb_data_type
206207
{
207208
firebase_rtdb_data_type_null = d_null,
208-
firebase_rtdb_data_type_integer,
209-
firebase_rtdb_data_type_float,
210-
firebase_rtdb_data_type_double,
211-
firebase_rtdb_data_type_boolean,
212-
firebase_rtdb_data_type_string,
213-
firebase_rtdb_data_type_json,
214-
firebase_rtdb_data_type_array,
215-
firebase_rtdb_data_type_blob,
216-
firebase_rtdb_data_type_file
209+
firebase_rtdb_data_type_integer = d_integer,
210+
firebase_rtdb_data_type_float = d_float,
211+
firebase_rtdb_data_type_double = d_double,
212+
firebase_rtdb_data_type_boolean = d_boolean,
213+
firebase_rtdb_data_type_string = d_string,
214+
firebase_rtdb_data_type_json = d_json,
215+
firebase_rtdb_data_type_array = d_array,
216+
firebase_rtdb_data_type_blob = d_blob,
217+
firebase_rtdb_data_type_file = d_file,
218+
219+
// old version compat
220+
fb_esp_rtdb_data_type_null = d_null,
221+
fb_esp_rtdb_data_type_integer = d_integer,
222+
fb_esp_rtdb_data_type_float = d_float,
223+
fb_esp_rtdb_data_type_double = d_double,
224+
fb_esp_rtdb_data_type_boolean = d_boolean,
225+
fb_esp_rtdb_data_type_string = d_string,
226+
fb_esp_rtdb_data_type_json = d_json,
227+
fb_esp_rtdb_data_type_array = d_array,
228+
fb_esp_rtdb_data_type_blob = d_blob,
229+
fb_esp_rtdb_data_type_file = d_file
217230
};
218231

219232
enum firebase_request_method
@@ -309,20 +322,7 @@ enum firebase_rtdb_value_type
309322
firebase_rtdb_value_type_double = 7,
310323
firebase_rtdb_value_type_json = 8,
311324
firebase_rtdb_value_type_array = 9,
312-
firebase_rtdb_value_type_blob = 10,
313-
314-
// old version compat
315-
fb_esp_rtdb_value_type_any = 0,
316-
fb_esp_rtdb_value_type_std_string = 1,
317-
fb_esp_rtdb_value_type_arduino_string = 2,
318-
fb_esp_rtdb_value_type_mb_string = 3,
319-
fb_esp_rtdb_value_type_char_array = 4,
320-
fb_esp_rtdb_value_type_int = 5,
321-
fb_esp_rtdb_value_type_float = 6,
322-
fb_esp_rtdb_value_type_double = 7,
323-
fb_esp_rtdb_value_type_json = 8,
324-
fb_esp_rtdb_value_type_array = 9,
325-
fb_esp_rtdb_value_type_blob = 10
325+
firebase_rtdb_value_type_blob = 10
326326
};
327327

328328
enum firebase_rtdb_upload_status

src/FB_Error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/FB_Network.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/FB_Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/Firebase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/Firebase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/FirebaseFS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/core/FirebaseCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/core/FirebaseCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/core/Firebase_Client_Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef FIREBASE_CLIENT_VERSION
22
#define FIREBASE_CLIENT_VERSION "4.4.4"
3-
#define FIREBASE_CLIENT_VERSION_NUM 40404
3+
#define FIREBASE_CLIENT_VERSION_NUM 40405
44

55
/* The inconsistent file version checking to prevent mixed versions compilation. */
66
#define FIREBASE_CLIENT_VERSION_CHECK(ver) (ver == FIREBASE_CLIENT_VERSION_NUM)

src/message/FCM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/message/FCM.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/message/LFCM.h

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

22
#include "./core/Firebase_Client_Version.h"
3-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
3+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
44
#error "Mixed versions compilation."
55
#endif
66

src/rtdb/FB_RTDB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/FB_RTDB.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/QueryFilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/QueryFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/QueueInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/QueueInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/QueueManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/QueueManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/stream/FB_MP_Stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/stream/FB_MP_Stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/stream/FB_Stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/rtdb/stream/FB_Stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/session/FB_Session.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

src/session/FB_Session.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "./core/Firebase_Client_Version.h"
2-
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
2+
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
33
#error "Mixed versions compilation."
44
#endif
55

0 commit comments

Comments
 (0)