diff --git a/library.json b/library.json index 4eb1ddb7..f5a1de83 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Firebase Arduino Client Library for ESP8266 and ESP32", - "version": "4.4.15", + "version": "4.4.16", "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": { diff --git a/library.properties b/library.properties index 846ebc26..81b5366c 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=Firebase Arduino Client Library for ESP8266 and ESP32 -version=4.4.15 +version=4.4.16 author=Mobizt diff --git a/src/client/FB_TCP_Client.h b/src/client/FB_TCP_Client.h index c2116c29..6b881c7c 100644 --- a/src/client/FB_TCP_Client.h +++ b/src/client/FB_TCP_Client.h @@ -1,7 +1,7 @@ /** - * Firebase TCP Client v1.0.4 + * Firebase TCP Client v1.0.5 * - * Created March 1, 2024 + * Created December 27, 2024 * * The MIT License (MIT) * Copyright (c) 2022 K. Suwatchai (Mobizt) @@ -849,6 +849,20 @@ class Firebase_TCP_Client : public Client return connect(); } +#if defined(ESP32_ARDUINO_CORE_CLIENT_CONNECT_HAS_TMO) + int connect(IPAddress ip, uint16_t port, int32_t timeout) + { + _tcp_client->setTimeout(timeout); + return connect(ip, port); + } + + int connect(const char *host, uint16_t port, int32_t timeout) + { + _tcp_client->setTimeout(timeout); + return connect(host, port); + } +#endif + void setConfig(FirebaseConfig *config, MB_FS *mbfs) { _config = config; @@ -871,7 +885,7 @@ class Firebase_TCP_Client : public Client return 0; } - void disconnect(){}; + void disconnect() {}; void keepAlive(int tcpKeepIdleSeconds, int tcpKeepIntervalSeconds, int tcpKeepCount) { diff --git a/src/core/Firebase_Client_Version.h b/src/core/Firebase_Client_Version.h index e1df2b6d..ddaf52d3 100644 --- a/src/core/Firebase_Client_Version.h +++ b/src/core/Firebase_Client_Version.h @@ -1,5 +1,5 @@ #ifndef FIREBASE_CLIENT_VERSION -#define FIREBASE_CLIENT_VERSION "4.4.15" -#define FIREBASE_CLIENT_VERSION_NUM 40415 +#define FIREBASE_CLIENT_VERSION "4.4.16" +#define FIREBASE_CLIENT_VERSION_NUM 40416 #endif \ No newline at end of file