Skip to content

Commit 6fd8941

Browse files
committed
2 parents f522b71 + 0f2f4f6 commit 6fd8941

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,18 @@ To use PSRAM for internal memory allocation which you can config to use it via [
460460
#define ESP_GOOGLE_SHEET_CLIENT_USE_PSRAM
461461
```
462462

463+
### Usage with TinyGSM
464+
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:
465+
```cpp
466+
/* If not use on-board WiFi */
467+
#define ESP_GOOGLE_SHEET_CLIENT_DISABLE_ONBOARD_WIFI
468+
469+
/* If not use native Ethernet (Ethernet interfaces that supported by SDK) */
470+
#define ESP_GOOGLE_SHEET_CLIENT_DISABLE_NATIVE_ETHERNET
471+
```
472+
Also, check out the [GSM Example](examples/GSM/GSM.ino) for more information.
473+
474+
463475
## Functions Description
464476

465477
### Global Functions

src/ESP_Google_Sheet_Client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void GSheetClass::auth(const char *client_email, const char *project_id, const c
6868
#endif
6969
}
7070

71-
#if defined(ESP32) || defined(ESP8266)
71+
#if defined(ESP_GOOGLE_SHEET_CLIENT_WIFI_IS_AVAILABLE)
7272
config.internal.reconnect_wifi = WiFi.getAutoReconnect();
7373
#endif
7474
config.signer.tokens.token_type = token_type_oauth2_access_token;

0 commit comments

Comments
 (0)