Skip to content

Commit

Permalink
Additional compile error fix to v1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Dec 28, 2024
1 parent 8f4e381 commit fc71efa
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP-Google-Sheet-Client",
"version": "1.4.5",
"version": "1.4.6",
"keywords": "communication, REST, esp32, esp8266, raspberrypi, arduino",
"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",
"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=ESP-Google-Sheet-Client

version=1.4.5
version=1.4.6

author=Mobizt

Expand Down
6 changes: 3 additions & 3 deletions src/ESP_Google_Sheet_Client.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef ESP_GOOGLE_SHEET_CLIENT_VERSION
#define ESP_GOOGLE_SHEET_CLIENT_VERSION "1.4.5"
#define ESP_GOOGLE_SHEET_CLIENT_VERSION "1.4.6"
#endif

/**
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.4.5
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.4.6
*
* This library supports Espressif ESP8266 and ESP32 MCUs
*
* Created December 5, 2024
* Created December 28, 2024
*
* The MIT License (MIT)
* Copyright (c) 2023 K. Suwatchai (Mobizt)
Expand Down
16 changes: 15 additions & 1 deletion src/client/GS_TCP_Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,20 @@ class GS_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(esp_google_sheet_auth_cfg_t *config, MB_FS *mbfs)
{
_config = config;
Expand All @@ -821,7 +835,7 @@ class GS_TCP_Client : public Client
return 0;
}

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

void keepAlive(int tcpKeepIdleSeconds, int tcpKeepIntervalSeconds, int tcpKeepCount)
{
Expand Down

0 comments on commit fc71efa

Please sign in to comment.