diff --git a/library.json b/library.json index e43fc71..d279f43 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Firebase ESP32 Client", - "version": "4.4.15", + "version": "4.4.16", "keywords": "communication, REST, esp32, 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": { diff --git a/library.properties b/library.properties index 1d06887..ef1f2d9 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=Firebase ESP32 Client -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 92689d2..6b881c7 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) @@ -466,7 +466,7 @@ class Firebase_TCP_Client : public Client if (_client_type == firebase_client_type_external_generic_client && (!_network_connection_cb || !_network_status_cb)) rdy = false; - else if (_client_type != firebase_client_type_external_generic_client || + else if (_client_type != firebase_client_type_external_generic_client && _client_type != firebase_client_type_external_gsm_client) rdy = false; #else @@ -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 e1df2b6..ddaf52d 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