gsampallo / esp32cam-gdrive Goto Github PK
View Code? Open in Web Editor NEWUpload an image directly from ESP32-CAM to Google Drive
Upload an image directly from ESP32-CAM to Google Drive
This loop in 'esp32cam-gdrive.ino' processes three bytes from the input buffer through the 'base64_encode()' function on every iteration. But the input buffer pointer is only incremented by one in each iteration. So, each byte in the buffer is processed three times. Seems odd.
for (int i=0;i<fb->len;i++) {
base64_encode(output, (input++), 3);
if (i%3==0) imageFile += urlencode(String(output));
}
Hola, el código esp32cam-gdrive / upload.gs está en error:
TypeError: no se pueden leer los 'parámetros' de propiedad de indefinido doPost @ Code.gs: 2
¿Sabrías qué está causando este error?
Since code publishing seems the Google have changed the logging in way. In WEB app deployment are only two options, per "Execute as"/"Me" or /"User accessing the web app" and "Who has access"/"Only myself" or "Anyone with Google account". Anonymous access is not available, thus, I suspect this was the reason I was unable to get complete the project. Meanwhile, I have used GPRS connection instead of WiFi. Here is the log of debug on serial monitor:
20:50:36.000 -> Connecting to APN: internet.beeline.am OK 20:50:40.490 -> Waiting for network... 20:50:40.490 -> GPRS status: connected 20:50:40.490 -> Local IP:10.111.107.23 20:50:46.510 -> Connected to GPRS 20:50:46.784 -> Connect to script.google.com 20:50:49.947 -> Connection successful 20:50:50.832 -> Send a captured image to Google Drive. 20:50:52.940 -> (SSLClient)(SSL_ERROR)(m_update_engine): Error writing to m_client 20:50:52.940 -> (SSLClient)(SSL_ERROR)(m_update_engine): 0 20:50:52.940 -> (SSLClient)(SSL_ERROR)(connected): Not connected because write error is set 20:50:52.974 -> (SSLClient)(SSL_ERROR)(m_print_ssl_error): SSL_CLIENT_WRITE_FAIL 20:50:52.974 -> (SSLClient)(SSL_WARN)(m_run_until): Terminating with write error: 20:50:52.974 -> (SSLClient)(SSL_WARN)(m_run_until): 4 20:50:52.974 -> (SSLClient)(SSL_ERROR)(write): Failed while waiting for the engine to enter BR_SSL_SENDAPP 20:50:52.974 -> (SSLClient)(SSL_ERROR)(write): Cannot operate if the write error is not reset: 20:50:52.974 -> (SSLClient)(SSL_ERROR)(m_print_ssl_error): SSL_CLIENT_WRITE_FAIL 20:50:53.009 -> (SSLClient)(SSL_ERROR)(write): Cannot operate if the write error is not reset: 20:50:53.009 -> (SSLClient)(SSL_ERROR)(m_print_ssl_error): SSL_CLIENT_WRITE_FAIL 20:50:53.009 -> (SSLClient)(SSL_ERROR)(write): Cannot operate if the write error is not reset:
As the debug info shows, here are none of SSL connection issue. "Connect to script.google.com" return "Connection successful".
Delete issues
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.