Skip to content

Commit b8201f3

Browse files
committed
Additional fix to library v4.4.15
1 parent 45d2a3c commit b8201f3

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Firebase Arduino Client Library for ESP8266 and ESP32",
3-
"version": "4.4.15",
3+
"version": "4.4.16",
44
"keywords": "communication, REST, esp32, esp8266, arduino",
55
"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.",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=Firebase Arduino Client Library for ESP8266 and ESP32
22

3-
version=4.4.15
3+
version=4.4.16
44

55
author=Mobizt
66

src/client/FB_TCP_Client.h

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Firebase TCP Client v1.0.4
2+
* Firebase TCP Client v1.0.5
33
*
4-
* Created March 1, 2024
4+
* Created December 27, 2024
55
*
66
* The MIT License (MIT)
77
* Copyright (c) 2022 K. Suwatchai (Mobizt)
@@ -849,6 +849,20 @@ class Firebase_TCP_Client : public Client
849849
return connect();
850850
}
851851

852+
#if defined(ESP32_ARDUINO_CORE_CLIENT_CONNECT_HAS_TMO)
853+
int connect(IPAddress ip, uint16_t port, int32_t timeout)
854+
{
855+
_tcp_client->setTimeout(timeout);
856+
return connect(ip, port);
857+
}
858+
859+
int connect(const char *host, uint16_t port, int32_t timeout)
860+
{
861+
_tcp_client->setTimeout(timeout);
862+
return connect(host, port);
863+
}
864+
#endif
865+
852866
void setConfig(FirebaseConfig *config, MB_FS *mbfs)
853867
{
854868
_config = config;
@@ -871,7 +885,7 @@ class Firebase_TCP_Client : public Client
871885
return 0;
872886
}
873887

874-
void disconnect(){};
888+
void disconnect() {};
875889

876890
void keepAlive(int tcpKeepIdleSeconds, int tcpKeepIntervalSeconds, int tcpKeepCount)
877891
{

src/core/Firebase_Client_Version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef FIREBASE_CLIENT_VERSION
2-
#define FIREBASE_CLIENT_VERSION "4.4.15"
3-
#define FIREBASE_CLIENT_VERSION_NUM 40415
2+
#define FIREBASE_CLIENT_VERSION "4.4.16"
3+
#define FIREBASE_CLIENT_VERSION_NUM 40416
44

55
#endif

0 commit comments

Comments
 (0)