mobizt / Firebase-ESP-Client

[DEPRECATED]🔥Firebase Arduino Client Library for ESP8266, ESP32 and RP2040 Pico. The complete, fast, secured and reliable Firebase Arduino client library that supports RTDB, Cloud Firestore, Firebase and Google Cloud Storage, Cloud Messaging and Cloud Functions for Firebase.
MIT License
471 stars 101 forks source link

error when imported along with ESP_Google_Sheet_Client #661

Closed luthfai closed 7 months ago

luthfai commented 7 months ago

Describe the bug Im Trying to import along with but there is a lot of conflict in the included file

To Reproduce

#include <ESP_Google_Sheet_Client.h>
#include <Firebase_ESP_Client.h>

Expected behavior i want to store my sensor reading to firebase and spreadsheet at the same time

IDE and its version:

error msg

In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:230:5: error: 'http_undefined' conflicts with a previous declaration
     http_undefined,
     ^~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:143:5: note: previous declaration 'esp_google_sheet_request_method http_undefined'
     http_undefined,
     ^~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:231:5: error: 'http_put' conflicts with a previous declaration
     http_put,
     ^~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:144:5: note: previous declaration 'esp_google_sheet_request_method http_put'
     http_put,
     ^~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:232:5: error: 'http_post' conflicts with a previous declaration
     http_post,
     ^~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:145:5: note: previous declaration 'esp_google_sheet_request_method http_post'
     http_post,
     ^~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:233:5: error: 'http_get' conflicts with a previous declaration
     http_get,
     ^~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:146:5: note: previous declaration 'esp_google_sheet_request_method http_get'
     http_get,
     ^~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:234:5: error: 'http_patch' conflicts with a previous declaration
     http_patch,
     ^~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:147:5: note: previous declaration 'esp_google_sheet_request_method http_patch'
     http_patch,
     ^~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:235:5: error: 'http_delete' conflicts with a previous declaration
     http_delete,
     ^~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:148:5: note: previous declaration 'esp_google_sheet_request_method http_delete'
     http_delete
     ^~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:265:5: error: 'token_status_uninitialized' conflicts with a previous declaration
     token_status_uninitialized,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:116:5: note: previous declaration 'gauth_auth_token_status token_status_uninitialized'
     token_status_uninitialized,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:266:5: error: 'token_status_on_initialize' conflicts with a previous declaration
     token_status_on_initialize,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:117:5: note: previous declaration 'gauth_auth_token_status token_status_on_initialize'
     token_status_on_initialize,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:267:5: error: 'token_status_on_signing' conflicts with a previous declaration
     token_status_on_signing,
     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:118:5: note: previous declaration 'gauth_auth_token_status token_status_on_signing'
     token_status_on_signing,
     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:268:5: error: 'token_status_on_request' conflicts with a previous declaration
     token_status_on_request,
     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:119:5: note: previous declaration 'gauth_auth_token_status token_status_on_request'
     token_status_on_request,
     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:269:5: error: 'token_status_on_refresh' conflicts with a previous declaration
     token_status_on_refresh,
     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:120:5: note: previous declaration 'gauth_auth_token_status token_status_on_refresh'
     token_status_on_refresh,
     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:270:5: error: 'token_status_ready' conflicts with a previous declaration
     token_status_ready,
     ^~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:121:5: note: previous declaration 'gauth_auth_token_status token_status_ready'
     token_status_ready,
     ^~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:271:5: error: 'token_status_error' conflicts with a previous declaration
     token_status_error
     ^~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:122:5: note: previous declaration 'gauth_auth_token_status token_status_error'
     token_status_error,
     ^~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:276:5: error: 'token_type_undefined' conflicts with a previous declaration
     token_type_undefined,
     ^~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:128:5: note: previous declaration 'gauth_auth_token_type token_type_undefined'
     token_type_undefined,
     ^~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:280:5: error: 'token_type_oauth2_access_token' conflicts with a previous declaration
     token_type_oauth2_access_token,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:129:5: note: previous declaration 'gauth_auth_token_type token_type_oauth2_access_token'
     token_type_oauth2_access_token,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:281:5: error: 'token_type_refresh_token' conflicts with a previous declaration
     token_type_refresh_token
     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:130:5: note: previous declaration 'gauth_auth_token_type token_type_refresh_token'
     token_type_refresh_token
     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:899:38: error: cannot convert 'esp_google_sheet_request_method' to 'firebase_request_method' in initialization
     firebase_request_method method = http_get;
                                      ^~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:936:3: error: conflicting declaration 'typedef struct firebase_spi_ethernet_module_t SPI_ETH_Module'
 } SPI_ETH_Module;
   ^~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:492:3: note: previous declaration as 'typedef struct gauth_spi_ethernet_module_t SPI_ETH_Module'
 } SPI_ETH_Module;
   ^~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:947:43: error: cannot convert 'gauth_auth_token_type' to 'firebase_auth_token_type' in initialization
     firebase_auth_token_type token_type = token_type_undefined;
                                           ^~~~~~~~~~~~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:948:41: error: cannot convert 'gauth_auth_token_status' to 'firebase_auth_token_status' in initialization
     firebase_auth_token_status status = token_status_uninitialized;
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:1288:37: error: cannot convert 'gauth_auth_token_type' to 'firebase_auth_token_type' in initialization
     firebase_auth_token_type type = token_type_undefined;
                                     ^~~~~~~~~~~~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:1289:41: error: cannot convert 'gauth_auth_token_status' to 'firebase_auth_token_status' in initialization
     firebase_auth_token_status status = token_status_uninitialized;
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:1291:3: error: conflicting declaration 'typedef struct token_info_t TokenInfo'
 } TokenInfo;
   ^~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:30,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Const.h:292:3: note: previous declaration as 'typedef struct gauth_token_info_t TokenInfo'
 } TokenInfo;
   ^~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:37,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./FB_Const.h:1391:42: error: cannot convert 'esp_google_sheet_request_method' to 'firebase_request_method' in initialization
     firebase_request_method req_method = http_put;
                                          ^~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:48,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:66:7: error: 'struct StringHelper' redeclared as different kind of symbol
 class StringHelper
       ^~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:32,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Helper.h:213:11: note: previous declaration 'namespace StringHelper { }'
 namespace StringHelper
           ^~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:48,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:211:7: error: 'struct URLHelper' redeclared as different kind of symbol
 class URLHelper
       ^~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:32,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Helper.h:389:11: note: previous declaration 'namespace URLHelper { }'
 namespace URLHelper
           ^~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:48,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:383:7: error: 'struct JsonHelper' redeclared as different kind of symbol
 class JsonHelper
       ^~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:32,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Helper.h:521:11: note: previous declaration 'namespace JsonHelper { }'
 namespace JsonHelper
           ^~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:48,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:623:7: error: 'struct HttpHelper' redeclared as different kind of symbol
 class HttpHelper
       ^~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:32,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Helper.h:1041:11: note: previous declaration 'namespace HttpHelper { }'
 namespace HttpHelper
           ^~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:48,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:1279:7: error: 'struct Base64Helper' redeclared as different kind of symbol
 class Base64Helper
       ^~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:32,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Helper.h:727:11: note: previous declaration 'namespace Base64Helper { }'
 namespace Base64Helper
           ^~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:48,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:1638:26: error: 'Base64Helper' is not a type
     bool decodeBase64OTA(Base64Helper *bh, MB_FS *mbfs, const char *src, size_t len, int &code)
                          ^~~~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h: In member function 'bool OtaHelper::decodeBase64OTA(int*, MB_FS*, const char*, size_t, int&)':
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:1645:43: error: request for member 'creatBase64DecBuffer' in '* bh', which is of non-class type 'int'
         unsigned char *base64DecBuf = bh->creatBase64DecBuffer(mbfs);
                                           ^~~~~~~~~~~~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:1646:18: error: request for member 'decode' in '* bh', which is of non-class type 'int'
         if (!bh->decode<uint8_t>(mbfs, base64DecBuf, src, strlen(src), out))
                  ^~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:1646:32: error: expected primary-expression before '>' token
         if (!bh->decode<uint8_t>(mbfs, base64DecBuf, src, strlen(src), out))
                                ^
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h: At global scope:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/FB_Utils.h:1657:7: error: 'struct Utils' redeclared as different kind of symbol
 class Utils
       ^~~~~
In file included from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/GS_TCP_Client.h:32,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/auth/GAuthManager.h:40,
                 from /home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/ESP_Google_Sheet_Client.h:40,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:4:
/home/ai/Arduino/libraries/ESP-Google-Sheet-Client/src/client/../GS_Helper.h:26:11: note: previous declaration 'namespace Utils { }'
 namespace Utils
           ^~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:50,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/core/FirebaseCore.h:69:5: error: 'Utils' does not name a type
     Utils ut;
     ^~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/core/FirebaseCore.h:70:5: error: 'StringHelper' does not name a type
     StringHelper sh;
     ^~~~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/core/FirebaseCore.h:71:5: error: 'URLHelper' does not name a type
     URLHelper uh;
     ^~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/core/FirebaseCore.h:72:5: error: 'JsonHelper' does not name a type
     JsonHelper jh;
     ^~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/core/FirebaseCore.h:73:5: error: 'HttpHelper' does not name a type
     HttpHelper hh;
     ^~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/core/FirebaseCore.h:74:5: error: 'Base64Helper' does not name a type
     Base64Helper bh;
     ^~~~~~~~~~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/core/FirebaseCore.h:204:74: error: could not convert 'token_status_uninitialized' from 'gauth_auth_token_status' to 'firebase_auth_token_status'
     bool initClient(PGM_P subDomain, firebase_auth_token_status status = token_status_uninitialized);
                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/session/FB_Session.h:40,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase.h:51,
                 from /home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/Firebase_ESP_Client.h:34,
                 from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:5:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/./rtdb/QueueInfo.h:46:38: error: cannot convert 'esp_google_sheet_request_method' to 'firebase_request_method' in initialization
     firebase_request_method method = http_get;
                                      ^~~~~~~~
In file included from /home/ai/Arduino/Spreadsheet/Spreadsheet.ino:6:
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h: In function 'const char* getTokenType(token_info_t)':
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h:28:5: error: duplicate case value
     case token_type_oauth2_access_token:
     ^~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h:19:5: note: previously used here
     case token_type_legacy_token:
     ^~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h: In function 'void tokenStatusCallback(TokenInfo)':
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h:92:76: error: could not convert 'info' from 'TokenInfo' {aka 'gauth_token_info_t'} to 'token_info_t'
         Serial_Printf("Token info: type = %s, status = %s\n", getTokenType(info), getTokenStatus(info));
                                                                            ^~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h:92:98: error: could not convert 'info' from 'TokenInfo' {aka 'gauth_token_info_t'} to 'token_info_t'
         Serial_Printf("Token info: type = %s, status = %s\n", getTokenType(info), getTokenStatus(info));
                                                                                                  ^~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h:93:58: error: could not convert 'info' from 'TokenInfo' {aka 'gauth_token_info_t'} to 'token_info_t'
         Serial_Printf("Token error: %s\n", getTokenError(info).c_str());
                                                          ^~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h:97:76: error: could not convert 'info' from 'TokenInfo' {aka 'gauth_token_info_t'} to 'token_info_t'
         Serial_Printf("Token info: type = %s, status = %s\n", getTokenType(info), getTokenStatus(info));
                                                                            ^~~~
/home/ai/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/addons/TokenHelper.h:97:98: error: could not convert 'info' from 'TokenInfo' {aka 'gauth_token_info_t'} to 'token_info_t'
         Serial_Printf("Token info: type = %s, status = %s\n", getTokenType(info), getTokenStatus(info));
                                                                                                  ^~~~
Multiple libraries were found for "SD.h"
  Used: /home/ai/.arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/SD
  Not used: /home/ai/.arduino15/libraries/SD
exit status 1

Compilation error: exit status 1
mobizt commented 7 months ago

You cannot use this library with the Google sheet library because the conflicts of enum sharing and cannot fix without changing the core.

If you still want to use Firebase and Google sheet, you should use this new library FirebaseClientv1.0.2 and ESP-Google-Sheet-Clientv1.4.4.

And you have to delete this folder https://github.com/mobizt/ESP-Google-Sheet-Client/tree/master/src/client/SSLClient

In your code you have to include FirebaseClient.h before ESP_Google_Sheet_Client.h

#include <FirebaseClient.h>
#include <ESP_Google_Sheet_Client.h>