Skip to content

Commit

Permalink
Fix the compatibility issue of missing fb_esp_rtdb_data_type values i…
Browse files Browse the repository at this point in the history
…n firebase_rtdb_data_type enums.
  • Loading branch information
mobizt committed Sep 12, 2023
1 parent ac006e6 commit 574bda4
Show file tree
Hide file tree
Showing 29 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Firebase ESP32 Client",
"version": "4.4.4",
"version": "4.4.5",
"keywords": "communication, REST, esp32, arduino",
"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.",
"repository": {
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 ESP32 Client

version=4.4.4
version=4.4.5

author=Mobizt

Expand Down
50 changes: 25 additions & 25 deletions src/FB_Const.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

/**
* Created September 5, 2023
* Created September 12, 2023
*
* The MIT License (MIT)
* Copyright (c) 2023 K. Suwatchai (Mobizt)
Expand Down Expand Up @@ -186,6 +186,7 @@ enum firebase_con_mode

enum firebase_data_type
{
// Do not changes the order as it used by firebase_rtdb_data_type
d_any = 0,
d_null,
d_integer,
Expand All @@ -205,15 +206,27 @@ enum firebase_data_type
enum firebase_rtdb_data_type
{
firebase_rtdb_data_type_null = d_null,
firebase_rtdb_data_type_integer,
firebase_rtdb_data_type_float,
firebase_rtdb_data_type_double,
firebase_rtdb_data_type_boolean,
firebase_rtdb_data_type_string,
firebase_rtdb_data_type_json,
firebase_rtdb_data_type_array,
firebase_rtdb_data_type_blob,
firebase_rtdb_data_type_file
firebase_rtdb_data_type_integer = d_integer,
firebase_rtdb_data_type_float = d_float,
firebase_rtdb_data_type_double = d_double,
firebase_rtdb_data_type_boolean = d_boolean,
firebase_rtdb_data_type_string = d_string,
firebase_rtdb_data_type_json = d_json,
firebase_rtdb_data_type_array = d_array,
firebase_rtdb_data_type_blob = d_blob,
firebase_rtdb_data_type_file = d_file,

// old version compat
fb_esp_rtdb_data_type_null = d_null,
fb_esp_rtdb_data_type_integer = d_integer,
fb_esp_rtdb_data_type_float = d_float,
fb_esp_rtdb_data_type_double = d_double,
fb_esp_rtdb_data_type_boolean = d_boolean,
fb_esp_rtdb_data_type_string = d_string,
fb_esp_rtdb_data_type_json = d_json,
fb_esp_rtdb_data_type_array = d_array,
fb_esp_rtdb_data_type_blob = d_blob,
fb_esp_rtdb_data_type_file = d_file
};

enum firebase_request_method
Expand Down Expand Up @@ -309,20 +322,7 @@ enum firebase_rtdb_value_type
firebase_rtdb_value_type_double = 7,
firebase_rtdb_value_type_json = 8,
firebase_rtdb_value_type_array = 9,
firebase_rtdb_value_type_blob = 10,

// old version compat
fb_esp_rtdb_value_type_any = 0,
fb_esp_rtdb_value_type_std_string = 1,
fb_esp_rtdb_value_type_arduino_string = 2,
fb_esp_rtdb_value_type_mb_string = 3,
fb_esp_rtdb_value_type_char_array = 4,
fb_esp_rtdb_value_type_int = 5,
fb_esp_rtdb_value_type_float = 6,
fb_esp_rtdb_value_type_double = 7,
fb_esp_rtdb_value_type_json = 8,
fb_esp_rtdb_value_type_array = 9,
fb_esp_rtdb_value_type_blob = 10
firebase_rtdb_value_type_blob = 10
};

enum firebase_rtdb_upload_status
Expand Down
2 changes: 1 addition & 1 deletion src/FB_Error.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/FB_Network.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/FB_Utils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Firebase.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/Firebase.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/FirebaseFS.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/core/FirebaseCore.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/core/FirebaseCore.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/core/Firebase_Client_Version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef FIREBASE_CLIENT_VERSION
#define FIREBASE_CLIENT_VERSION "4.4.4"
#define FIREBASE_CLIENT_VERSION_NUM 40404
#define FIREBASE_CLIENT_VERSION_NUM 40405

/* The inconsistent file version checking to prevent mixed versions compilation. */
#define FIREBASE_CLIENT_VERSION_CHECK(ver) (ver == FIREBASE_CLIENT_VERSION_NUM)
Expand Down
2 changes: 1 addition & 1 deletion src/message/FCM.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/message/FCM.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/message/LFCM.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/FB_RTDB.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/FB_RTDB.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/QueryFilter.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/QueryFilter.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/QueueInfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/QueueInfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/QueueManager.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/QueueManager.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/stream/FB_MP_Stream.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/stream/FB_MP_Stream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/stream/FB_Stream.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/rtdb/stream/FB_Stream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/session/FB_Session.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/session/FB_Session.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "./core/Firebase_Client_Version.h"
#if !FIREBASE_CLIENT_VERSION_CHECK(40404)
#if !FIREBASE_CLIENT_VERSION_CHECK(40405)
#error "Mixed versions compilation."
#endif

Expand Down

0 comments on commit 574bda4

Please sign in to comment.