Closed Klasth closed 5 years ago
i'm sorry for this.
The problem was in the .ino
The name of my spreadsheet must be equal to the .ino
String payload_base = "{\"command\": \"appendRow\", \ \"sheet_name\": \"Hoja 1\", \ \"values\": ";
My sheet name was "Hoja 1"
that resolve de problem.
The solution come to me in the pull: https://github.com/electronicsguy/ESP8266/pull/66/files
Hello,
Well thanks for all job of the community and special for electronicsguy
I follow all the steps of the README, add a calendar in the drive.
I have a message when the ESP8266 execute this code:
client->POST(url2, host, payload)
in
Message in the serial:
<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">TypeError: No se puede llamar al método "getLastRow" de null. (línea 74, archivo "Código", proyecto "copy")</div></body></html>
(have google account and arduino IDE in spanish)
Tell that can't call method in line 74 of .gs A problem with getLastRow:
Finally, the doPost function....
I really don't know what s happen here. The sheet looks like this.![sin titulo](https://user-images.githubusercontent.com/46566560/52572866-987cd280-2df7-11e9-9fed-bbde27c52114.png)
Something is wrong and don't know. what do you think?