Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Feb 8, 2024
2 parents f522b71 + 0f2f4f6 commit 6fd8941
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,18 @@ To use PSRAM for internal memory allocation which you can config to use it via [
#define ESP_GOOGLE_SHEET_CLIENT_USE_PSRAM
```

### Usage with TinyGSM
By default the library assumes a working native WiFi or Ethernet connection. When using TinyGSM as an external client, you most likely do not want to use the Wifi/Ethernet (i.e. to get the current time). You will have to disable this in [**ESP_Google_Sheet_Client_FS_Config.h**](src/ESP_Google_Sheet_Client_FS_Config.h) by uncommenting the following lines like this:
```cpp
/* If not use on-board WiFi */
#define ESP_GOOGLE_SHEET_CLIENT_DISABLE_ONBOARD_WIFI

/* If not use native Ethernet (Ethernet interfaces that supported by SDK) */
#define ESP_GOOGLE_SHEET_CLIENT_DISABLE_NATIVE_ETHERNET
```
Also, check out the [GSM Example](examples/GSM/GSM.ino) for more information.


## Functions Description

### Global Functions
Expand Down
2 changes: 1 addition & 1 deletion src/ESP_Google_Sheet_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void GSheetClass::auth(const char *client_email, const char *project_id, const c
#endif
}

#if defined(ESP32) || defined(ESP8266)
#if defined(ESP_GOOGLE_SHEET_CLIENT_WIFI_IS_AVAILABLE)
config.internal.reconnect_wifi = WiFi.getAutoReconnect();
#endif
config.signer.tokens.token_type = token_type_oauth2_access_token;
Expand Down

0 comments on commit 6fd8941

Please sign in to comment.