StorageB / Google-Sheets-Logging

Log data from an ESP8266 device directly to Google Sheets without a third party service. Log sensor data, send data by pressing a button, and receive data from a Google spreadsheet. (NodeMCU, Wemos D1 mini, Adafruit Feather HUZZAH, etc)
145 stars 32 forks source link

Function not found: doPost #12

Closed ctnalves closed 1 year ago

ctnalves commented 1 year ago

I implemented the code as recommendations, but after establishing wifi connection and connecting to host, publishing returns this error message. What could be causing this problem?

Connecting to Ypyeng 2g ... ......

Connection established! IP address: 192.168.1.17 Connecting to script.google.com Connected Publishing data... {"command": "insert_row", "sheet_name": "Sheet1", "values": "1,925,4191"} <!DOCTYPE html>Erro

Google Apps Script
Script function not found: doPost

ctnalves commented 1 year ago

It worked just following the additional notes: "When making changes to the Google Scripts code, you will need to click Save then Deploy > New deployment for any new changes to take effect. You will be given a new Deployment ID that you will have to update in the ESP8266 code each time (each new deployment is given a new Deployment ID)".

So, if you have the same problem, just do it. It may solve.