Skip to content

Commit af338c6

Browse files
committed
Fix ESP32 Core v1.x.x time lib compilation error.
1 parent d9cadb5 commit af338c6

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-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": "ESP-Google-Sheet-Client",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"keywords": "communication, REST, esp32, esp8266, raspberrypi, arduino",
55
"description": "Arduino Google Sheet REST client library for ESP8266, ESP32 and Raspberry Pi Pico (RP2040). 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.3.0
3+
version=1.3.1
44

55
author=Mobizt
66

src/ESP_Google_Sheet_Client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* Google Sheet Client, GS_Google_Sheet_Client.cpp v1.3.0
2+
* Google Sheet Client, GS_Google_Sheet_Client.cpp v1.3.1
33
*
44
* This library supports Espressif ESP8266 and ESP32 MCUs
55
*
6-
* Created January 22, 2023
6+
* Created January 24, 2023
77
*
88
* The MIT License (MIT)
99
* Copyright (c) 2022 K. Suwatchai (Mobizt)

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.3.0"
2+
#define ESP_GOOGLE_SHEET_CLIENT_VERSION "1.3.1"
33
#endif
44

55
/**
6-
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.3.0
6+
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.3.1
77
*
88
* This library supports Espressif ESP8266 and ESP32 MCUs
99
*
10-
* Created January 22, 2023
10+
* Created January 24, 2023
1111
*
1212
* The MIT License (MIT)
1313
* Copyright (c) 2022 K. Suwatchai (Mobizt)

src/GS_Const.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
#define MIN_WIFI_RECONNECT_TIMEOUT 10 * 1000
2626
#define MAX_WIFI_RECONNECT_TIMEOUT 5 * 60 * 1000
2727

28+
#if defined(ESP32) && !defined(ESP_ARDUINO_VERSION) /* ESP32 core < v2.0.x */
29+
#include <sys/time.h>
30+
#else
31+
#include <time.h>
32+
#endif
33+
2834
#include "ESP_Google_Sheet_Client_FS_Config.h"
2935
#include "mbfs/MB_FS.h"
3036
#include "auth/MB_NTP.h"

0 commit comments

Comments
 (0)