Skip to content

Commit

Permalink
Fix RTDB set float and double issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Mar 23, 2024
1 parent c382967 commit 7790d91
Show file tree
Hide file tree
Showing 307 changed files with 638 additions and 317 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ The features can be configurable to add and exclude some unused features, see [L

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.

Try the beta version of new async [FirebaseClient](https://github.com/mobizt/FirebaseClient) library which is faster and more reliable.

The new async [FirebaseClient](https://github.com/mobizt/FirebaseClient) is currently support Realtime Database.
The version of new async [FirebaseClient](https://github.com/mobizt/FirebaseClient) library is availavle which is faster and more reliable.


## Contents
Expand Down
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.12",
"version": "4.4.14",
"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.12
version=4.4.14

author=Mobizt

Expand Down
4 changes: 2 additions & 2 deletions src/Firebase.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

/**
* The Firebase class, Firebase.cpp v1.2.8
* The Firebase class, Firebase.cpp v1.2.9
*
* Created September 13, 2023
* Created March 23, 2024
*
* The MIT License (MIT)
* Copyright (c) 2023 K. Suwatchai (Mobizt)
Expand Down
19 changes: 17 additions & 2 deletions src/Firebase.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "./core/Firebase_Client_Version.h"

/**
* The Firebase class, Firebase.h v1.2.8
* The Firebase class, Firebase.h v1.2.9
*
* Created September 13, 2023
* Created March 23, 2024
*
* The MIT License (MIT)
* Copyright (c) 2023 K. Suwatchai (Mobizt)
Expand Down Expand Up @@ -2578,6 +2578,21 @@ class FIREBASE_CLASS
buff = out.c_str();
}

void printf(const char *format, ...)
{
int size = 2048;
char s[size];
va_list va;
va_start(va, format);
vsnprintf(s, size, format, va);
va_end(va);
#if defined(FIREBASE_DEFAULT_DEBUG_PORT)
FIREBASE_DEFAULT_DEBUG_PORT.print(s);
#else
Serial.print(s);
#endif
}

private:
#if defined(FIREBASE_ESP32_CLIENT) || defined(FIREBASE_ESP8266_CLIENT)
#if defined(ENABLE_RTDB) || defined(FIREBASE_ENABLE_RTDB)
Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_big_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_BIG_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_BIG_CBCDEC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_big_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_BIG_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_BIG_CBCENC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_big_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_BIG_CTR_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_BIG_CTR_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_big_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_BIG_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_BIG_CTRCBC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_big_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_BIG_DEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_BIG_DEC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_big_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_BIG_ENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_BIG_ENC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_COMMON_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_COMMON_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct64.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT64_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT64_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct64_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT64_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT64_CBCDEC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct64_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT64_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT64_CBCENC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct64_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT64_CTR_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT64_CTR_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct64_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT64_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT64_CTRCBC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct64_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT64_DEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT64_DEC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct64_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT64_ENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT64_ENC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT_CBCDEC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT_CBCENC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT_CTR_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT_CTR_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT_CTRCBC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT_DEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT_DEC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_ct_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_CT_ENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_CT_ENC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_pwr8.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_PWR8_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_PWR8_C

#define BR_POWER_ASM_MACROS 1
#include "inner.h"
Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_pwr8_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_PWR8_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_PWR8_CBCDEC_C

#define BR_POWER_ASM_MACROS 1
#include "inner.h"
Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_pwr8_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_PWR8_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_PWR8_CBCENC_C

#define BR_POWER_ASM_MACROS 1
#include "inner.h"
Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_pwr8_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_PWR8_CTR_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_PWR8_CTR_C

#define BR_POWER_ASM_MACROS 1
#include "inner.h"
Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_pwr8_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_PWR8_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_PWR8_CTRCBC_C

#define BR_POWER_ASM_MACROS 1
#include "inner.h"
Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_small_cbcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_SMALL_CBCDEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_SMALL_CBCDEC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_small_cbcenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_SMALL_CBCENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_SMALL_CBCENC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_small_ctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_SMALL_CTR_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_SMALL_CTR_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_small_ctrcbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_SMALL_CTRCBC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_SMALL_CTRCBC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_small_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_SMALL_DEC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_SMALL_DEC_C

#include "inner.h"

Expand Down
3 changes: 2 additions & 1 deletion src/client/SSLClient/bssl/aes_small_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/

#include "../ESP_SSLClient_FS.h"
#if defined(USE_LIB_SSL_ENGINE)
#if !defined(EAS_SMALL_ENC_C) && defined(USE_LIB_SSL_ENGINE)
#define EAS_SMALL_ENC_C

#include "inner.h"

Expand Down
Loading

0 comments on commit 7790d91

Please sign in to comment.