Code Monkey home page Code Monkey logo

esp32cam-gdrive's People

Contributors

executer-uno avatar gsampallo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

esp32cam-gdrive's Issues

Strange Indexing

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));
    }

Error

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?

Google logging in procedure

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".

Truncated image at Google Drive side

Hi, image transfer runs free of errors but some 20% of the images arrive missing part of the footer.
The size of the footer varies from transfer to transfer.
It also happens when I transfer via http to a php script.
Same image works well with FTP transfer.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.