Comments on: ESP32 Datalogging to Google Sheets (using Google Service Account) https://randomnerdtutorials.com/esp32-datalogging-google-sheets/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 15 Jul 2025 16:12:27 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-1069345 Tue, 15 Jul 2025 16:12:27 +0000 https://randomnerdtutorials.com/?p=144933#comment-1069345 In reply to Giacomo.

Hi.
Yes. You can save your values in files on the ESP32 filesystem or using Preferences:

-Save data on the filesystem: https://randomnerdtutorials.com/esp32-write-data-littlefs-arduino/
– Save data using the Preferences library: https://randomnerdtutorials.com/esp32-save-data-permanently-preferences/

Regards,
Sara

]]>
By: Giacomo https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-1069250 Tue, 15 Jul 2025 07:39:51 +0000 https://randomnerdtutorials.com/?p=144933#comment-1069250 hi,
my concern is that when there is no wifi connection, no data will be recorded. is there a way to store it in the JSON Valuerange in the sram and when the connection is present append all the previous recordings?

thanks

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-1067612 Fri, 11 Jul 2025 09:34:29 +0000 https://randomnerdtutorials.com/?p=144933#comment-1067612 In reply to Pat.

Hi.
That’s a weird error.
I recommend going to ‘C:/Users/Win10 and delete the AppData folder.
If that doesn’t work.
I recommend unninstalling and installing Arduino IDE and the ESP32 from scratch and all the libraries.
Regards,
Sara

]]>
By: Pat https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-1067455 Fri, 11 Jul 2025 05:13:32 +0000 https://randomnerdtutorials.com/?p=144933#comment-1067455 Hi Sara,

Thank you for the tutorial. I have completed to the point of uploading the code to ESP32 board. I have to use DHT11 sensor instead as I don’t have the sensor you use. However, I could not upload due to this error:

xtensa-esp-elf-g++.exe: fatal error: cannot execute ‘C:/Users/Win10/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2411/bin/../libexec/gcc/xtensa-esp-elf/14.2.0/cc1plus.exe’: CreateProcess: No such file or directory
compilation terminated.
exit status 1

Compilation error: exit status 1

(…)
I seek advice from AI and reinstall esp32 board but still show same error. Could you please help me?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-1061128 Thu, 26 Jun 2025 10:00:30 +0000 https://randomnerdtutorials.com/?p=144933#comment-1061128 In reply to Thomas.

Hi.
Yes, you’re right.

I have a notice about that in the tutorial: Note: if your Google Sheets is not in English language, you might need to change Sheet1 with the corresponding in your language on the following line.

But, maybe it is not highlighted enough.

Thanks for your comment.

Regards,
Sara

]]>
By: Thomas https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-1060954 Wed, 25 Jun 2025 20:06:48 +0000 https://randomnerdtutorials.com/?p=144933#comment-1060954 Hi Sara and Rui,

very helpful, indeed, thanks a lot.

Remark for the German-language users:
I had to change “sheet1” to “Tabellenblatt1” (and not “Tabelle1”) to get it running.

]]>
By: Kevin Maher https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-1024475 Mon, 07 Apr 2025 18:48:58 +0000 https://randomnerdtutorials.com/?p=144933#comment-1024475 Hi Rui and Sara,
excellent job with the tutorials. I have learned so much! The Googlesheets upload works great!. One question – how can I suppress the verbose response back to my serial from google each time a data packet is received? I would like to toggle ON as needed for trouble shooting, when necessary. Thanks

]]>
By: Edward https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-1016367 Fri, 14 Mar 2025 08:59:00 +0000 https://randomnerdtutorials.com/?p=144933#comment-1016367 In reply to Frank.

Is there any solution?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-995942 Mon, 30 Dec 2024 22:25:02 +0000 https://randomnerdtutorials.com/?p=144933#comment-995942 In reply to Nick.

Hi.
Great.
Thank you so much for describing this.
This will definitely be helpful for other readers.
Regards,
Sara

]]>
By: Nick https://randomnerdtutorials.com/esp32-datalogging-google-sheets/#comment-995547 Sun, 29 Dec 2024 11:59:51 +0000 https://randomnerdtutorials.com/?p=144933#comment-995547 Thank you for the hand-holding to get through this!

I solved a problem that others might find useful. After following your instructions exactly, I got the following error:
Token info: type = OAuth2.0 access token, status = on exchange request
Token info: type = OAuth2.0 access token, status = error
Token error: code: -1, message: Missing required parameter: assertion

What happened is that:
– I used a project name containing spaces, which Google automatically converted to hyphens in the service account.
– when copying the JSON file that includes the private key to my computer, I used the Windows default app Notepad.
– When I pasted the Notepad entry for “client_email” into the Arduino IDE, the IDE incorrectly added spaces between the hyphens. The IDE did this all by itself – must be some kind of bug. I checked this several times and each time the behavior was the same – it added unwanted spaces to the name. Those spaces had to be removed for the OAuth2.0 error to go away, leading to the lovely:

Token info: type = OAuth2.0 access token, status = on initializing
Token info: type = OAuth2.0 access token, status = on signing
Token info: type = OAuth2.0 access token, status = on exchange request
Token info: type = OAuth2.0 access token, status = ready

and a working ESP32-S2 -> Gsheets link!
(except every entry into the spreadsheet is repeated twice, I’ll have to figure that out later)

This might save someone some time to figure out at least a potential solution for the “OAuth2.0 access token, status = error” issue.

]]>