Skip to content

Commit fff869d

Browse files
committed
Addituonal update for internal SSL Client
1 parent 11ec2b5 commit fff869d

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
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 ESP8266 Client",
3-
"version": "4.4.15",
3+
"version": "4.4.16",
44
"keywords": "communication, REST, esp8266, arduino",
55
"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.",
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 ESP8266 Client
22

3-
version=4.4.15
3+
version=4.4.16
44

55
author=Mobizt
66

src/client/FB_TCP_Client.h

Lines changed: 18 additions & 4 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)
@@ -466,7 +466,7 @@ class Firebase_TCP_Client : public Client
466466
if (_client_type == firebase_client_type_external_generic_client &&
467467
(!_network_connection_cb || !_network_status_cb))
468468
rdy = false;
469-
else if (_client_type != firebase_client_type_external_generic_client ||
469+
else if (_client_type != firebase_client_type_external_generic_client &&
470470
_client_type != firebase_client_type_external_gsm_client)
471471
rdy = false;
472472
#else
@@ -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.14"
3-
#define FIREBASE_CLIENT_VERSION_NUM 40414
2+
#define FIREBASE_CLIENT_VERSION "4.4.16"
3+
#define FIREBASE_CLIENT_VERSION_NUM 40416
44

55
#endif

0 commit comments

Comments
 (0)