Skip to content

Commit

Permalink
Fix 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 adfe099 commit 8fd9a1d
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 @@ -16,9 +16,7 @@ The RTDB (Realtime database), FCM (Cloud Messaing) and core code used in `Fireba

The `FirebaseESP8266` and `FirebaseESP32` libraries are the old and limited features Firebase client library while `Firebase-ESP-Client` is the newver version of Firebase client library that developed to support more Firebase services.

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 new version of new async [FirebaseClient](https://github.com/mobizt/FirebaseClient) library is availavle for you to try.

## 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 ESP8266 Client",
"version": "4.4.12",
"version": "4.4.14",
"keywords": "communication, REST, esp8266, 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 ESP8266 Client

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 8fd9a1d

Please sign in to comment.