Skip to content

Commit

Permalink
Additional fix to library v4.4.15
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Dec 28, 2024
1 parent ab38f19 commit ef75443
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=Firebase ESP32 Client

version=4.4.15
version=4.4.16

author=Mobizt

Expand Down
22 changes: 18 additions & 4 deletions src/client/FB_TCP_Client.h
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand All @@ -871,7 +885,7 @@ class Firebase_TCP_Client : public Client
return 0;
}

void disconnect(){};
void disconnect() {};

void keepAlive(int tcpKeepIdleSeconds, int tcpKeepIntervalSeconds, int tcpKeepCount)
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/Firebase_Client_Version.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ef75443

Please sign in to comment.