Skip to content

Commit fc71efa

Browse files
committed
Additional compile error fix to v1.4.5
1 parent 8f4e381 commit fc71efa

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
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": "ESP-Google-Sheet-Client",
3-
"version": "1.4.5",
3+
"version": "1.4.6",
44
"keywords": "communication, REST, esp32, esp8266, raspberrypi, arduino",
55
"description": "Arduino Google Sheet REST client library for Arduino devices. This library allows devices to communicate with Google Sheet API to read, edit and delete the spreadsheets",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=ESP-Google-Sheet-Client
22

3-
version=1.4.5
3+
version=1.4.6
44

55
author=Mobizt
66

src/ESP_Google_Sheet_Client.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#ifndef ESP_GOOGLE_SHEET_CLIENT_VERSION
2-
#define ESP_GOOGLE_SHEET_CLIENT_VERSION "1.4.5"
2+
#define ESP_GOOGLE_SHEET_CLIENT_VERSION "1.4.6"
33
#endif
44

55
/**
6-
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.4.5
6+
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.4.6
77
*
88
* This library supports Espressif ESP8266 and ESP32 MCUs
99
*
10-
* Created December 5, 2024
10+
* Created December 28, 2024
1111
*
1212
* The MIT License (MIT)
1313
* Copyright (c) 2023 K. Suwatchai (Mobizt)

src/client/GS_TCP_Client.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,20 @@ class GS_TCP_Client : public Client
799799
return connect();
800800
}
801801

802+
#if defined(ESP32_ARDUINO_CORE_CLIENT_CONNECT_HAS_TMO)
803+
int connect(IPAddress ip, uint16_t port, int32_t timeout)
804+
{
805+
_tcp_client->setTimeout(timeout);
806+
return connect(ip, port);
807+
}
808+
809+
int connect(const char *host, uint16_t port, int32_t timeout)
810+
{
811+
_tcp_client->setTimeout(timeout);
812+
return connect(host, port);
813+
}
814+
#endif
815+
802816
void setConfig(esp_google_sheet_auth_cfg_t *config, MB_FS *mbfs)
803817
{
804818
_config = config;
@@ -821,7 +835,7 @@ class GS_TCP_Client : public Client
821835
return 0;
822836
}
823837

824-
void disconnect(){};
838+
void disconnect() {};
825839

826840
void keepAlive(int tcpKeepIdleSeconds, int tcpKeepIntervalSeconds, int tcpKeepCount)
827841
{

0 commit comments

Comments
 (0)