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 504a97e commit d391140
Show file tree
Hide file tree
Showing 41 changed files with 65 additions and 65 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 Arduino Client Library for ESP8266 and ESP32",
"version": "4.4.4",
"version": "4.4.5",
"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": {
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 Arduino Client Library for ESP8266 and ESP32

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/firestore/FB_Firestore.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/firestore/FB_Firestore.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/functions/FB_Functions.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/functions/FB_Functions.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/functions/FunctionsConfig.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/functions/FunctionsConfig.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/functions/PocicyBuilder.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/functions/PolicyBuilder.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/gcs/GCS.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/gcs/GCS.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/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
2 changes: 1 addition & 1 deletion src/storage/FCS.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/storage/FCS.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 d391140

Please sign in to comment.