diff --git a/README.md b/README.md index 6cd8d9f..8ae8ad3 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/mobizt/FirebaseClient/.github%2Fworkflows%2Fcompile_library.yml?logo=github&label=compile) [![Github Stars](https://img.shields.io/github/stars/mobizt/FirebaseClient?logo=github)](https://github.com/mobizt/FirebaseClient/stargazers) ![Github Issues](https://img.shields.io/github/issues/mobizt/FirebaseClient?logo=github) -![GitHub Release](https://img.shields.io/github/v/release/mobizt/FirebaseClient) ![Arduino](https://img.shields.io/badge/Arduino-v1.4.5-57C207?logo=arduino) ![PlatformIO](https://badges.registry.platformio.org/packages/mobizt/library/FirebaseClient.svg) ![GitHub Release Date](https://img.shields.io/github/release-date/mobizt/FirebaseClient) +![GitHub Release](https://img.shields.io/github/v/release/mobizt/FirebaseClient) ![Arduino](https://img.shields.io/badge/Arduino-v1.4.6-57C207?logo=arduino) ![PlatformIO](https://badges.registry.platformio.org/packages/mobizt/library/FirebaseClient.svg) ![GitHub Release Date](https://img.shields.io/github/release-date/mobizt/FirebaseClient) [![GitHub Sponsors](https://img.shields.io/github/sponsors/mobizt?logo=github)](https://github.com/sponsors/mobizt) -Revision `2024-10-30T08:28:24Z` +Revision `2024-10-30T03:51:10Z` ## Table of Contents @@ -3096,7 +3096,7 @@ FIREBASE_DISABLE_NATIVE_ETHERNET // For disabling native (sdk) Ethernet function ENABLE_ASYNC_TCP_CLIENT // For Async TCP Client usage. FIREBASE_ASYNC_QUEUE_LIMIT // For maximum async queue limit setting for an async client. FIREBASE_PRINTF_PORT // For Firebase.printf debug port. -FIREBASE_PRINTF_BUFFER // Firebase.printf buffer size. +FIREBASE_PRINTF_BUFFER // Firebase.printf buffer size. The default printf buffer size is 1024 for ESP8266 and SAMD otherwise 4096. Some debug message may be truncated for larger text. ``` You can assign the optional build options using one of the following methods. diff --git a/library.json b/library.json index deae3a7..67cc294 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "FirebaseClient", - "version": "1.4.5", + "version": "1.4.6", "keywords": "communication, REST, esp32, esp8266, arduino", "description": "Async Firebase Client library for Arduino.", "repository": { diff --git a/library.properties b/library.properties index 92c9f56..06631df 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=FirebaseClient -version=1.4.5 +version=1.4.6 author=Mobizt diff --git a/src/Config.h b/src/Config.h index 3433bb2..2edae55 100644 --- a/src/Config.h +++ b/src/Config.h @@ -124,7 +124,8 @@ * 🏷️ For Firebase.printf debug port. * #define FIREBASE_PRINTF_PORT Serial * - * * 🏷️ For Firebase.printf buffer size. + * * 🏷️ For Firebase.printf buffer size. + * The default printf buffer size is 1024 for ESP8266 and SAMD otherwise 4096. * #define FIREBASE_PRINTF_BUFFER 2048 */ diff --git a/src/FirebaseClient.h b/src/FirebaseClient.h index e7374e1..4ff20a1 100644 --- a/src/FirebaseClient.h +++ b/src/FirebaseClient.h @@ -253,8 +253,12 @@ namespace firebase #if defined(FIREBASE_PRINTF_BUFFER) int size = FIREBASE_PRINTF_BUFFER; #else - // Default buffer size for large JSON response. +// Default buffer size for large JSON response. +#if defined(ARDUINO_ARCH_SAMD) || defined(ESP8266) + int size = 1024; +#else int size = 4096; +#endif #endif char s[size]; va_list va; diff --git a/src/core/Core.h b/src/core/Core.h index 96254ab..7ec40ee 100644 --- a/src/core/Core.h +++ b/src/core/Core.h @@ -7,7 +7,7 @@ #undef FIREBASE_CLIENT_VERSION #endif -#define FIREBASE_CLIENT_VERSION "1.4.5" +#define FIREBASE_CLIENT_VERSION "1.4.6" static void sys_idle() {