Skip to content

Commit

Permalink
Fix ESP32 Core v1.x.x time lib compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Jan 24, 2023
1 parent d9cadb5 commit af338c6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 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.3.0",
"version": "1.3.1",
"keywords": "communication, REST, esp32, esp8266, raspberrypi, arduino",
"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",
"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.3.0
version=1.3.1

author=Mobizt

Expand Down
4 changes: 2 additions & 2 deletions src/ESP_Google_Sheet_Client.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Google Sheet Client, GS_Google_Sheet_Client.cpp v1.3.0
* Google Sheet Client, GS_Google_Sheet_Client.cpp v1.3.1
*
* This library supports Espressif ESP8266 and ESP32 MCUs
*
* Created January 22, 2023
* Created January 24, 2023
*
* The MIT License (MIT)
* Copyright (c) 2022 K. Suwatchai (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.3.0"
#define ESP_GOOGLE_SHEET_CLIENT_VERSION "1.3.1"
#endif

/**
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.3.0
* Google Sheet Client, ESP_Google_Sheet_Client.h v1.3.1
*
* This library supports Espressif ESP8266 and ESP32 MCUs
*
* Created January 22, 2023
* Created January 24, 2023
*
* The MIT License (MIT)
* Copyright (c) 2022 K. Suwatchai (Mobizt)
Expand Down
6 changes: 6 additions & 0 deletions src/GS_Const.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
#define MIN_WIFI_RECONNECT_TIMEOUT 10 * 1000
#define MAX_WIFI_RECONNECT_TIMEOUT 5 * 60 * 1000

#if defined(ESP32) && !defined(ESP_ARDUINO_VERSION) /* ESP32 core < v2.0.x */
#include <sys/time.h>
#else
#include <time.h>
#endif

#include "ESP_Google_Sheet_Client_FS_Config.h"
#include "mbfs/MB_FS.h"
#include "auth/MB_NTP.h"
Expand Down

0 comments on commit af338c6

Please sign in to comment.