Skip to content

Commit 7790d91

Browse files
committed
Fix RTDB set float and double issues.
1 parent c382967 commit 7790d91

File tree

307 files changed

+638
-317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+638
-317
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ The features can be configurable to add and exclude some unused features, see [L
1313

1414
The [ESP8266 and Raspberry Pi Pico](https://github.com/mobizt/Firebase-ESP8266) and [ESP32](https://github.com/mobizt/Firebase-ESP32) versions are available which provide only Firebase Realtime database and Firebase Cloud Messaging functions.
1515

16-
Try the beta version of new async [FirebaseClient](https://github.com/mobizt/FirebaseClient) library which is faster and more reliable.
17-
18-
The new async [FirebaseClient](https://github.com/mobizt/FirebaseClient) is currently support Realtime Database.
16+
The version of new async [FirebaseClient](https://github.com/mobizt/FirebaseClient) library is availavle which is faster and more reliable.
1917

2018

2119
## Contents

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Firebase Arduino Client Library for ESP8266 and ESP32",
3-
"version": "4.4.12",
3+
"version": "4.4.14",
44
"keywords": "communication, REST, esp32, esp8266, arduino",
55
"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.",
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 Arduino Client Library for ESP8266 and ESP32
22

3-
version=4.4.12
3+
version=4.4.14
44

55
author=Mobizt
66

src/Firebase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
/**
3-
* The Firebase class, Firebase.cpp v1.2.8
3+
* The Firebase class, Firebase.cpp v1.2.9
44
*
5-
* Created September 13, 2023
5+
* Created March 23, 2024
66
*
77
* The MIT License (MIT)
88
* Copyright (c) 2023 K. Suwatchai (Mobizt)

src/Firebase.h

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "./core/Firebase_Client_Version.h"
22

33
/**
4-
* The Firebase class, Firebase.h v1.2.8
4+
* The Firebase class, Firebase.h v1.2.9
55
*
6-
* Created September 13, 2023
6+
* Created March 23, 2024
77
*
88
* The MIT License (MIT)
99
* Copyright (c) 2023 K. Suwatchai (Mobizt)
@@ -2578,6 +2578,21 @@ class FIREBASE_CLASS
25782578
buff = out.c_str();
25792579
}
25802580

2581+
void printf(const char *format, ...)
2582+
{
2583+
int size = 2048;
2584+
char s[size];
2585+
va_list va;
2586+
va_start(va, format);
2587+
vsnprintf(s, size, format, va);
2588+
va_end(va);
2589+
#if defined(FIREBASE_DEFAULT_DEBUG_PORT)
2590+
FIREBASE_DEFAULT_DEBUG_PORT.print(s);
2591+
#else
2592+
Serial.print(s);
2593+
#endif
2594+
}
2595+
25812596
private:
25822597
#if defined(FIREBASE_ESP32_CLIENT) || defined(FIREBASE_ESP8266_CLIENT)
25832598
#if defined(ENABLE_RTDB) || defined(FIREBASE_ENABLE_RTDB)

src/client/SSLClient/bssl/aes_big_cbcdec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_BIG_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_BIG_CBCDEC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_big_cbcenc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_BIG_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_BIG_CBCENC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_big_ctr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_BIG_CTR_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_BIG_CTR_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_big_ctrcbc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_BIG_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_BIG_CTRCBC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_big_dec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_BIG_DEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_BIG_DEC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_big_enc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_BIG_ENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_BIG_ENC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_COMMON_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_COMMON_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct64.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT64_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT64_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct64_cbcdec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT64_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT64_CBCDEC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct64_cbcenc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT64_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT64_CBCENC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct64_ctr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT64_CTR_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT64_CTR_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct64_ctrcbc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT64_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT64_CTRCBC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct64_dec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT64_DEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT64_DEC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct64_enc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT64_ENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT64_ENC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct_cbcdec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT_CBCDEC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct_cbcenc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT_CBCENC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct_ctr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT_CTR_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT_CTR_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct_ctrcbc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT_CTRCBC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct_dec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT_DEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT_DEC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_ct_enc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_CT_ENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_CT_ENC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_pwr8.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_PWR8_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_PWR8_C
2728

2829
#define BR_POWER_ASM_MACROS 1
2930
#include "inner.h"

src/client/SSLClient/bssl/aes_pwr8_cbcdec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_PWR8_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_PWR8_CBCDEC_C
2728

2829
#define BR_POWER_ASM_MACROS 1
2930
#include "inner.h"

src/client/SSLClient/bssl/aes_pwr8_cbcenc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_PWR8_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_PWR8_CBCENC_C
2728

2829
#define BR_POWER_ASM_MACROS 1
2930
#include "inner.h"

src/client/SSLClient/bssl/aes_pwr8_ctr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_PWR8_CTR_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_PWR8_CTR_C
2728

2829
#define BR_POWER_ASM_MACROS 1
2930
#include "inner.h"

src/client/SSLClient/bssl/aes_pwr8_ctrcbc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_PWR8_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_PWR8_CTRCBC_C
2728

2829
#define BR_POWER_ASM_MACROS 1
2930
#include "inner.h"

src/client/SSLClient/bssl/aes_small_cbcdec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_SMALL_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_SMALL_CBCDEC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_small_cbcenc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_SMALL_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_SMALL_CBCENC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_small_ctr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_SMALL_CTR_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_SMALL_CTR_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_small_ctrcbc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_SMALL_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_SMALL_CTRCBC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_small_dec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_SMALL_DEC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_SMALL_DEC_C
2728

2829
#include "inner.h"
2930

src/client/SSLClient/bssl/aes_small_enc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
*/
2424

2525
#include "../ESP_SSLClient_FS.h"
26-
#if defined(USE_LIB_SSL_ENGINE)
26+
#if !defined(EAS_SMALL_ENC_C) && defined(USE_LIB_SSL_ENGINE)
27+
#define EAS_SMALL_ENC_C
2728

2829
#include "inner.h"
2930

0 commit comments

Comments
 (0)